From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F6DC3858C3A; Mon, 29 Apr 2024 13:15:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F6DC3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714396554; bh=98R0kRJP40XzQFaHZhvxaEfGZOZtyZlvNstftQE0eZQ=; h=From:To:Subject:Date:From; b=LL3KpUry4W3mSdRZdxMbgeWx2pZObssgYPEx1Vx+mx7RUW4+L7oTFyRZbhNnLtTfp gw6jVMLm3NW1RsYskxo3Iag4Hyd0rZebw4Tob5+J11bFQGGy3D+EOXGPalzLSNFuYC XirFFdUSgVQj85YVaqNPH544fxcAR090sXqIRyxE= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114889] New: [modules] ICE in friend_accessible_p with imported class template specialization befriending class template Date: Mon, 29 Apr 2024 13:15:53 +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=3D114889 Bug ID: 114889 Summary: [modules] ICE in friend_accessible_p with imported class template specialization befriending class template 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: --- $ cat testcase_a.C export module mymod; template struct _Hashtable; export template struct _Map_base { void f() { _Hashtable<_Key, _Val> __h; __h._M_hash_code(0); } }; template struct _Hashtable { template friend struct _Map_base; protected: void _M_hash_code(int); }; _Hashtable m; $ cat testcase_b.C import mymod; int main() { _Map_base m; m.f(); } $ g++ -fmodules-ts testcase_* In module mymod, imported at testcase_b.C:1: testcase_a.C: In instantiation of =E2=80=98void _Map_base@mymod<_Key, _Val>= ::f() [with _Key =3D int; _Val =3D int]=E2=80=99: testcase_b.C:5:6: required from here 5 | m.f(); | ~~~^~ testcase_a.C:11:21: internal compiler error: in friend_accessible_p, at cp/search.cc:803 11 | __h._M_hash_code(0); | ~~~~~~~~~~~~~~~~^~~=