From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2150A385483F; Wed, 8 Mar 2023 21:01:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2150A385483F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678309273; bh=dFUC/s1Rj+b4mEQKruLgHFkC1i6s8o+oVosPY0l5mNQ=; h=From:To:Subject:Date:From; b=hM/DXaK5g/cr34g3zHVSs7PeCeru8ElXFTXd9TqfN0XLUpaYtkTRDF4BG2SzD7ug3 KrRSxbrICjXW9mjj4zjsNtQpXMZzjP15NxKFZQ7hldOLahyR/EqIEeAufnmeV4eC+r BEME0tyG6L/VWijqVDuz7r0rtOMAxNjTqxLJybEs= From: "ed at catmur dot uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109070] New: ICE in class template member function overloads distinguished by non-functionally-equivalent constraints and return type Date: Wed, 08 Mar 2023 21:01:12 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ed at catmur dot uk 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=3D109070 Bug ID: 109070 Summary: ICE in class template member function overloads distinguished by non-functionally-equivalent constraints and return type Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ed at catmur dot uk Target Milestone: --- template concept C =3D true; template struct A { int f() requires C<42> { return 1; } // #1 unsigned f() requires true { return 2u; } // #2 }; int main() { int (A::*p)() =3D &A::f; unsigned (A::*q)() =3D &A::f; return (A().*p)() + (A().*q)(); } :10:1: error: Two symbols with same comdat_group are not linked by = the same_comdat_group list. 10 | } | ^ _ZN1AIiE1fEv/2 (unsigned int A::f() requires true [with T =3D int]) Type: function definition analyzed Visibility: semantic_interposition public weak comdat comdat_group:_ZN1AIiE1fEv one_only previous sharing asm name: 1 Address is taken. References:=20 Referring: main/0 (addr)=20 Function flags: body Called by:=20 Calls:=20 _ZN1AIiE1fEv/1 (int A::f() requires C<42> [with T =3D int]) Type: function definition analyzed Visibility: semantic_interposition public weak comdat comdat_group:_ZN1AIiE1fEv one_only next sharing asm name: 2 Address is taken. References:=20 Referring: main/0 (addr)=20 Function flags: body Called by:=20 Calls:=20 :10:1: internal compiler error: symtab_node::verify failed 0x247b73e internal_error(char const*, ...) ???:0 0xed5c22 symtab_node::verify_symtab_nodes() ???:0 0xef042b symbol_table::finalize_compilation_unit() ???:0 This is valid per [temp.over.link]/5, but that seems impossible to implemen= t - I've filed https://github.com/cplusplus/CWG/issues/256.=