From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 34DD93858D3C; Mon, 20 Sep 2021 19:03:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34DD93858D3C From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102414] New: [12 Regression] ICE in unify_array_domain, at cp/pt.c:23442 Date: Mon, 20 Sep 2021 19:03:03 +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: 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 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: Mon, 20 Sep 2021 19:03:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102414 Bug ID: 102414 Summary: [12 Regression] ICE in unify_array_domain, at cp/pt.c:23442 Product: gcc Version: 12.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 20210627 and 20210704 : $ cat z1.cc void f () { int a[3]; auto (*b)[0/0] =3D &a; } $ g++-12-20210919 -c z1.cc z1.cc: In function 'void f()': z1.cc:4:14: warning: division by zero [-Wdiv-by-zero] 4 | auto (*b)[0/0] =3D &a; | ~^~ z1.cc:4:21: internal compiler error: in unify_array_domain, at cp/pt.c:23442 4 | auto (*b)[0/0] =3D &a; | ^ 0x671a18 unify_array_domain ../../gcc/cp/pt.c:23442 0x8160a5 unify ../../gcc/cp/pt.c:24013 0x815da3 unify ../../gcc/cp/pt.c:24319 0x814b99 unify_one_argument ../../gcc/cp/pt.c:22271 0x8225b6 type_unification_real ../../gcc/cp/pt.c:22390 0x80aea5 do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int) ../../gcc/cp/pt.c:29807 0x732d36 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/cp/decl.c:7948 0x7f3caf cp_parser_init_declarator ../../gcc/cp/parser.c:22665 0x7d1b52 cp_parser_simple_declaration ../../gcc/cp/parser.c:15133 0x7d37c9 cp_parser_declaration_statement ../../gcc/cp/parser.c:14214 0x7d3e4c cp_parser_statement ../../gcc/cp/parser.c:12306 0x7d4cb4 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:12713 0x7d4d6f cp_parser_compound_statement ../../gcc/cp/parser.c:12662 0x7f2e78 cp_parser_function_body ../../gcc/cp/parser.c:24893 0x7f2e78 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:24944 0x7f3326 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:31066 0x7f4247 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.c:30982 0x7f4247 cp_parser_init_declarator ../../gcc/cp/parser.c:22427 0x7d1b52 cp_parser_simple_declaration ../../gcc/cp/parser.c:15133 0x7f9a1f cp_parser_declaration ../../gcc/cp/parser.c:14819=