From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B555B385AC2F; Thu, 12 Aug 2021 17:12:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B555B385AC2F From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101886] New: [11/12 Regression][concepts] ICE with auto as template parameter Date: Thu, 12 Aug 2021 17:12:28 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt 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 keywords 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: Thu, 12 Aug 2021 17:12:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101886 Bug ID: 101886 Summary: [11/12 Regression][concepts] ICE with auto as template parameter Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet (compiled with "-fconcepts") triggers an ICE since GCC 11.1.0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D template struct A { }; A a; A b1 =3D a; A b2 =3D a; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D bug.cc:5:13: internal compiler error: same canonical type node for different types 'auto' and 'auto' 5 | A b2 =3D a; | ^ 0xb4eb9d comptypes(tree_node*, tree_node*, int) ../../gcc-11.1.0/gcc/cp/typeck.c:1565 0xab322f template_args_equal(tree_node*, tree_node*, bool) ../../gcc-11.1.0/gcc/cp/pt.c:9231 0xb42e41 cp_tree_equal(tree_node*, tree_node*) ../../gcc-11.1.0/gcc/cp/tree.c:4079 0xab305a template_args_equal(tree_node*, tree_node*, bool) ../../gcc-11.1.0/gcc/cp/pt.c:9249 0xab2d88 template_args_equal(tree_node*, tree_node*, bool) ../../gcc-11.1.0/gcc/cp/pt.c:9194 0xab2d88 comp_template_args(tree_node*, tree_node*, tree_node**, tree_node*= *, bool) ../../gcc-11.1.0/gcc/cp/pt.c:9278 0xab2d88 comp_template_args(tree_node*, tree_node*, tree_node**, tree_node*= *, bool) ../../gcc-11.1.0/gcc/cp/pt.c:9258 0xabc9f3 spec_hasher::equal(spec_entry*, spec_entry*) ../../gcc-11.1.0/gcc/cp/pt.c:1727 0xb02944 hash_table::find_with_hash(spec_entry* const&, unsigned int) ../../gcc-11.1.0/gcc/hash-table.h:923 0xaeef47 lookup_template_class_1 ../../gcc-11.1.0/gcc/cp/pt.c:9889 0xaf0bfc lookup_template_class(tree_node*, tree_node*, tree_node*, tree_nod= e*, int, int) ../../gcc-11.1.0/gcc/cp/pt.c:10244 0xb1914b finish_template_type(tree_node*, tree_node*, int) ../../gcc-11.1.0/gcc/cp/semantics.c:3581 0xa8a8eb cp_parser_template_id ../../gcc-11.1.0/gcc/cp/parser.c:17486 0xa8aadb cp_parser_class_name ../../gcc-11.1.0/gcc/cp/parser.c:24722 0xa81fda cp_parser_qualifying_entity ../../gcc-11.1.0/gcc/cp/parser.c:7002 0xa81fda cp_parser_nested_name_specifier_opt ../../gcc-11.1.0/gcc/cp/parser.c:6684 0xaa2e18 cp_parser_template_introduction ../../gcc-11.1.0/gcc/cp/parser.c:30254 0xaa50c3 cp_parser_declaration ../../gcc-11.1.0/gcc/cp/parser.c:14149 0xaa5e4c cp_parser_toplevel_declaration ../../gcc-11.1.0/gcc/cp/parser.c:14183 0xaa5e4c cp_parser_translation_unit ../../gcc-11.1.0/gcc/cp/parser.c:4942 Please submit a full bug report, [etc.]=