From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 135E0398E44C; Fri, 19 Feb 2021 22:35:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 135E0398E44C From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99153] [11 Regression] ICE: depset::hash::make_dependency Date: Fri, 19 Feb 2021 22:35:33 +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: ice-on-valid-code 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: 11.0 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 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: Fri, 19 Feb 2021 22:35:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99153 --- Comment #2 from Nathan Sidwell --- // B_a.ii template struct pair { inline void Frob (); }; // B_b.ii import "./B_a.ii" template inline void pair<_T1>::Frob() { } ./cc1plus -quiet -std=3Dc++20 -fmodule-header -fpreprocessed B_a.ii && ./c= c1plus -quiet -std=3Dc++20 -fmodule-header -fpreprocessed B_b.ii B_b.ii:1: internal compiler error: in make_dependency, at cp/module.cc:12523 1 | import "./B_a.ii" [[__translated]]; |=20 0xcd61da depset::hash::make_dependency(tree_node*, depset::entity_kind) ../../../src/gcc/cp/module.cc:12523 0xcd7f54 depset::hash::add_class_entities(vec*) ../../../src/gcc/cp/module.cc:12942 0xce60bb module_state::write(elf_out*, cpp_reader*) ../../../src/gcc/cp/module.cc:17604 The module flags on the TEMPLATE_DECL do not match those of the DECL_TEMPLATE_RESULT.=