From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9F64C3858C27; Thu, 19 Jan 2023 17:54:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F64C3858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674150892; bh=NLRWYu8C4mQrqN6HNiOdB3brZJLl16p/snzUuilvfa0=; h=From:To:Subject:Date:From; b=ju3m6CaeVdar3YLLHme4ntx6sGQFLV6WdP+SV1amPhZv4dOpWcmgsYssolvxvSdNX IzqLGrpZHVmmPmqn1bl9CU+dOZCDm0+gbdKJNIs9yy/SfhJdl3/3N0b0wI2JwWGiGZ ZHbA4pb38Xhk9nycO0cB4ZciZ/GGxHDXMGwuBMo8= From: "ed at catmur dot uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108468] New: ICE in most_specialized_partial_spec/builtin_guide_p in C++20 mode Date: Thu, 19 Jan 2023 17:54:52 +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=3D108468 Bug ID: 108468 Summary: ICE in most_specialized_partial_spec/builtin_guide_p in C++20 mode 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: --- Since 11.1, the following ices in -std=3Dc++20 and later: template struct C { template static constexpr int x =3D = 1; }; template template int C::x = =3D 2; int y =3D C<0>::x; 0x23ae54e internal_error(char const*, ...) ???:0 0xc5b614 deduction_guide_p(tree_node const*) ???:0 0xc5be2c builtin_guide_p(tree_node const*) ???:0 0xc82bdf most_specialized_partial_spec(tree_node*, int) ???:0 0xc83a76 instantiate_template(tree_node*, tree_node*, int) ???:0 0xc8c0d8 finish_template_variable(tree_node*, int) ???:0 0xcce05f finish_id_expression(tree_node*, tree_node*, tree_node*, cp_id_kin= d*, bool, bool, bool*, bool, bool, bool, bool, char const**, unsigned int) ???:0=