From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7947C3858C54; Tue, 28 Mar 2023 18:55:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7947C3858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680029722; bh=ixk+nzD3o2g47ILIHMBC+BHqNjHXup4AFJXOPB0U0zs=; h=From:To:Subject:Date:From; b=eqc8oNAaeQhSmKaAdpb4gHaj5L1Vufc+OWxz1kgKzeKxoWfLHM1QjgMlYBq3dH3zq C9mpVyEcsYP992aMOJ0VzrDECVN2yLm79P270tRY/M6IsfecnCf+4jcdiBGsHDSrFl fTd1wOT5t429aqWIJGyVAXAvdAm/kFOPukWZfsos= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109321] New: [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727 Date: Tue, 28 Mar 2023 18:55:22 +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: gscfq@t-online.de 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=3D109321 Bug ID: 109321 Summary: [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20230226 and 20230312, with -std=3Dc++20 or -std=3Dc++23 : $ cat z1.cc struct A; template struct B; template using D =3D B; void f () { D() =3D 0; } $ g++-13-20230326 -c z1.cc -std=3Dc++23 z1.cc: In substitution of 'template B()-> B requires=20 __is_deducible (D, B) [with C =3D A]': z1.cc:4:15: required from here z1.cc:4:15: internal compiler error: Segmentation fault 4 | void f () { D() =3D 0; } | ^ 0xe24a1f crash_signal ../../gcc/toplev.cc:314 0x88209c iterative_hash_template_arg(tree_node*, unsigned int) ../../gcc/cp/pt.cc:1727 0x762f71 sat_hasher::hash(sat_entry*) ../../gcc/cp/constraint.cc:2572 0x762f71 hash_table::find_slot(sat_entry* const&, insert_option) ../../gcc/hash-table.h:435 0x762f71 satisfaction_cache::satisfaction_cache(tree_node*, tree_node*, sat_info) ../../gcc/cp/constraint.cc:2668 0x765a71 satisfy_atom ../../gcc/cp/constraint.cc:2998 0x765a71 satisfy_constraint_r ../../gcc/cp/constraint.cc:3106 0x7665f3 satisfy_normalized_constraints ../../gcc/cp/constraint.cc:3131 0x7641da satisfy_declaration_constraints ../../gcc/cp/constraint.cc:3352 0x7641da constraint_satisfaction_value ../../gcc/cp/constraint.cc:3373 0x76666a constraints_satisfied_p(tree_node*, tree_node*) ../../gcc/cp/constraint.cc:3410 0x8afef5 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bo= ol, bool) ../../gcc/cp/pt.cc:22534 0x7251cb add_template_candidate_real ../../gcc/cp/call.cc:3594 0x725e83 add_template_candidate ../../gcc/cp/call.cc:3688 0x725e83 add_candidates ../../gcc/cp/call.cc:6596 0x72d101 add_candidates ../../gcc/cp/call.cc:4911 0x72d101 perform_overload_resolution ../../gcc/cp/call.cc:4911 0x72d4e9 perform_dguide_overload_resolution(tree_node*, vec const*, int) ../../gcc/cp/call.cc:4976 0x88e581 do_class_deduction ../../gcc/cp/pt.cc:30590 0x88e581 do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int) ../../gcc/cp/pt.cc:30715=