From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6703A38618ED; Sat, 16 Dec 2023 23:39:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6703A38618ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702769959; bh=QqPSt9w/14rvv6couWad6HGlk2fL7HxOGFsK0ViUqqs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EYf2rA4MknTz90/ztSezRHq2nFhuSvlLDlVRbSub+bOUBQ64Sv41n+sjb9d4lgP/W VJ8Hbm368j5e0QSnzHHmUsqWmFuuur1K/cufL3TzyGc0tAsSOOZ6ru+s4x9x39oKY0 DsL2lcAwRXg6kTFkyPLXZCxspJPlhk8d5MkHmM6Q= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106363] [13/14 Regression] [modules] ICE using-declaration of imported name in the same namespace Date: Sat, 16 Dec 2023 23:39:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106363 --- Comment #6 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:cb76f46c97e9f4e4869acceb77a000b6cc2cda0e commit r14-6636-gcb76f46c97e9f4e4869acceb77a000b6cc2cda0e Author: Nathaniel Shead Date: Sun Nov 12 11:54:43 2023 +1100 c++: Seed namespaces for bindings [PR106363] Currently the first depset for an EK_BINDING is not seeded. This breaks the attached testcase as then the namespace is not considered referenced yet during streaming, but we've already finished importing. There doesn't seem to be any particular reason I could find for skipping the first depset for bindings, and removing the condition doesn't appear to cause any test failures, so this patch removes that check. PR c++/106363 gcc/cp/ChangeLog: * module.cc (module_state::write_cluster): Don't skip first depset for bindings. gcc/testsuite/ChangeLog: * g++.dg/modules/pr106363_a.C: New test. * g++.dg/modules/pr106363_b.C: New test. Signed-off-by: Nathaniel Shead =