From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 264CF3858401; Wed, 22 Sep 2021 17:37:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 264CF3858401 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102455] New: ICE in verify_ctor_sanity, at cp/constexpr.c:4451 Date: Wed, 22 Sep 2021 17:37:19 +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: Wed, 22 Sep 2021 17:37:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102455 Bug ID: 102455 Summary: ICE in verify_ctor_sanity, at cp/constexpr.c:4451 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: --- Affects versions down to at least r5 (with -std=3Dc++14) : $ cat z1.cc typedef int v4si; typedef float v4sf __attribute__ ((vector_size(4))); constexpr v4sf foo (v4si) { for (;;) {} } template constexpr v4sf b =3D foo (v4si {}); $ g++-12-20210919 -c z1.cc z1.cc:4:49: internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:4451 4 | template constexpr v4sf b =3D foo (v4si {}); | ^ 0x6e1221 verify_ctor_sanity ../../gcc/cp/constexpr.c:4450 0x6ef919 cxx_eval_bare_aggregate ../../gcc/cp/constexpr.c:4493 0x6e5e73 cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6793 0x6e353b cxx_bind_parameters_in_call ../../gcc/cp/constexpr.c:1644 0x6e353b cxx_eval_call_expression ../../gcc/cp/constexpr.c:2617 0x6e7174 cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6336 0x6e5bb5 cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6828 0x6e964b cxx_eval_outermost_constant_expr ../../gcc/cp/constexpr.c:7368 0x6ec82a fold_non_dependent_expr_template ../../gcc/cp/constexpr.c:7720 0x87abb4 store_init_value(tree_node*, tree_node*, vec**, int) ../../gcc/cp/typeck2.c:777 0x73210d check_initializer ../../gcc/cp/decl.c:7277 0x734457 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/cp/decl.c:8077 0x7f3caf cp_parser_init_declarator ../../gcc/cp/parser.c:22665 0x7f6ba6 cp_parser_single_declaration ../../gcc/cp/parser.c:31569 0x7f6dc5 cp_parser_template_declaration_after_parameters ../../gcc/cp/parser.c:31134 0x7f758b cp_parser_explicit_template_declaration ../../gcc/cp/parser.c:31400 0x7f758b cp_parser_template_declaration_after_export ../../gcc/cp/parser.c:31419 0x7f97e9 cp_parser_declaration ../../gcc/cp/parser.c:14750 0x7fa4ab cp_parser_translation_unit ../../gcc/cp/parser.c:4978 0x7fa4ab c_parse_file() ../../gcc/cp/parser.c:47694=