From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7ADFC3858421; Sat, 6 Nov 2021 01:24:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7ADFC3858421 From: "jonathan.poelen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103105] New: [11 Regression] ICE iterative_hash_template_arg, at cp/pt.c:1790 Date: Sat, 06 Nov 2021 01:24:16 +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: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jonathan.poelen at gmail dot com 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2021 01:24:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103105 Bug ID: 103105 Summary: [11 Regression] ICE iterative_hash_template_arg, at cp/pt.c:1790 Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- $ cat test.cpp template struct list {}; template struct wrap_in_list_c {}; template using wrap_in_list_if_convertible =3D wrap_in_list_c< 1 !=3D (... + requires { x() =3D xs(); }) >; template using foo =3D list...>; using L =3D foo; $ g++ -std=3Dc++20 test.cpp test.cpp: In substitution of =E2=80=98template using wrap_in_list_if_convertible =3D wrap_in_list_c<(1 !=3D (... +requires{x()=3D xs();}))> [with x =3D xs; xs =3D {xs ...}]=E2=80=99: test.cpp:15:55: required from here test.cpp:10:7: internal compiler error: in iterative_hash_template_arg, at cp/pt.c:1790 10 | using wrap_in_list_if_convertible =3D wrap_in_list_c< | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x1797368 internal_error(char const*, ...) ???:0 0x67f8f9 fancy_abort(char const*, int, char const*) ???:0 0x7d5ec1 iterative_hash_template_arg(tree_node*, unsigned int) ???:0 0x7d5d8f iterative_hash_template_arg(tree_node*, unsigned int) ???:0 0x7d5e12 iterative_hash_template_arg(tree_node*, unsigned int) ???:0 0x7d5d8f iterative_hash_template_arg(tree_node*, unsigned int) ???:0 0x7d5d8f iterative_hash_template_arg(tree_node*, unsigned int) ???:0 0x7d5ec1 iterative_hash_template_arg(tree_node*, unsigned int) ???:0 0x7e7d16 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0x7f227c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_nod= e*, int, int) ???:0 0x816d4d finish_template_type(tree_node*, tree_node*, int) ???:0 0x7ce2fe c_parse_file() ???:0 0x8a252d c_common_parse_file() ???:0 Works with g++-10: https://godbolt.org/z/KvM31Yq35=