From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0BA73858C29; Wed, 7 Feb 2024 19:15:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0BA73858C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707333305; bh=XJjARd1cGbIT4qlez/JGO8rR/Qo2ihuMuR2TiqVwE9s=; h=From:To:Subject:Date:From; b=Xuc+3+upUZsJ++gDIvQznGL0pkXeYUaGKXho+M2ZVpD7zEcE9KfsB9DVRHX9vvTPU kN9c2d1j08xGsb45Zn6kx3yA+nwtw7VZWEFpip7zswEldlDkxYF5e58CA7ZTezEsWC KX4gue7gXraxU6RYp6n7m8YpDkXlcv0z64xf3gA8= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113814] New: [modules] ICE with imported partial specialization matching existing template-id Date: Wed, 07 Feb 2024 19:15:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D113814 Bug ID: 113814 Summary: [modules] ICE with imported partial specialization matching existing template-id Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- Reduced from the hello-1 ICE tracked by PR113710: $ cat header.h template struct tuple_element; template struct tuple { }; template tuple_element<__i, tuple<_Elements...>> get(tuple<_Elements...>); $ cat testcase.H #include "header.h" template struct tuple_element<__i, tuple<_Elements...>> { }; $ cat testcase.C #include "header.h" import "testcase.H" int main() { get<0>(tuple{}); } $ g++ -fmodules-ts testcase.H testcase.C testcase.C: In function =E2=80=98int main()=E2=80=99: testcase.C:5:3: internal compiler error: canonical types differ for identic= al types =E2=80=98tuple_element<__i, tuple<_Elements ...> >=E2=80=99 and =E2= =80=98tuple_element<__i, tuple<_Elements ...> >=E2=80=99 5 | get<0>(tuple{}); | ^~~=