From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2FBB23858D29; Mon, 22 Mar 2021 16:04:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FBB23858D29 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99480] [modules] ICE in import_entity_index, at cp/module.cc:3952 Date: Mon, 22 Mar 2021 16:04:57 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed cf_reconfirmed_on bug_status 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2021 16:04:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99480 Nathan Sidwell changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2021-03-22 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Nathan Sidwell --- // bug_a.ii template struct atomic; template struct atomic<_Tp*>; // bug_b.ii import "bug_a.ii"; template struct atomic<_Tp*> { }; ./cc1plus -std=3Dc++20 -quiet -fmodule-header bug_a.ii && ./cc1plus -std=3D= c++20 -quiet -fmodule-header bug_b.ii bug_b.ii:5:1: internal compiler error: in import_entity_index, at cp/module.cc:3943 5 | { | ^ 0xc8affe import_entity_index ../../../src/gcc/cp/module.cc:3943 0xcc4350 module_may_redeclare(tree_node*) ../../../src/gcc/cp/module.cc:18440 0xe23fda begin_class_definition(tree_node*) ../../../src/gcc/cp/semantics.c:3334=