From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF1A13851C22; Fri, 5 Mar 2021 21:51:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF1A13851C22 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvOTkyODVdIFttb2R1bGVzXSBJQ0UgY2Fub25pY2Fs?= =?UTF-8?B?IHR5cGVzIGRpZmZlciBmb3IgaWRlbnRpY2FsIHR5cGVzIOKAmHN0ZDo6Y29t?= =?UTF-8?B?bW9uX3R5cGUuLi4=?= Date: Fri, 05 Mar 2021 21:51:46 +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: UNCONFIRMED 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: 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, 05 Mar 2021 21:51:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99285 --- Comment #1 from Nathan Sidwell --- //bug_a.ii template struct common_type; template<> struct common_type<> {}; template struct common_type<_Tp0> {}; template struct common_type<_Tp1, _Tp2> {}; //bug_b.ii import "bug_a.ii"; template::type> struct X; ./cc1plus -quiet -std=3Dc++20 -fmodule-header bug_a.ii && ./cc1plus -quiet -std=3Dc++20 -fmodule-header bug_b.ii=20=20 bug_b.ii:4:60: internal compiler error: canonical types differ for identical types 'common_type<_Rep1, _Rep2>' and 'common_type<_Tp1, _Tp2>' 4 | typename _CRep =3D typename common_type<_Rep1, _Rep2>::typ= e> | ^ 0xea4ed7 comptypes(tree_node*, tree_node*, int) ../../../src/gcc/cp/typeck.c:1547 0xe4beea fixup_template_type ../../../src/gcc/cp/semantics.c:3477 0xe4c1f6 finish_template_type(tree_node*, tree_node*, int) ../../../src/gcc/cp/semantics.c:3510 0xd4aa7b cp_parser_template_id ../../../src/gcc/cp/parser.c:17444 0xd59426 cp_parser_class_name ../../../src/gcc/cp/parser.c:24671 0xd34ebf cp_parser_qualifying_entity ../../../src/gcc/cp/parser.c:6994=