From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F0C439551F8; Mon, 14 Jun 2021 17:23:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F0C439551F8 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101072] New: [11/12 Regression] ICE in build_target_expr_with_type, at cp/tree.c:845 Date: Mon, 14 Jun 2021 17:23:41 +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, 14 Jun 2021 17:23:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101072 Bug ID: 101072 Summary: [11/12 Regression] ICE in build_target_expr_with_type, at cp/tree.c:845 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: --- With file gcc/testsuite/g++.dg/cpp0x/constexpr-empty14.C and option -fno-elide-constructors, changed between 20201129 and 20201206 : $ g++-12-20210613 -c constexpr-empty14.C -fno-elide-constructors constexpr-empty14.C: In function 'void foo(S)': constexpr-empty14.C:9:19: internal compiler error: in build_target_expr_with_type, at cp/tree.c:845 9 | constexpr S x =3D s; | ^ 0x86c2c0 build_target_expr_with_type(tree_node*, tree_node*, int) ../../gcc/cp/tree.c:845 0x81d535 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc/cp/pt.c:20831 0x6ffa0c fold_non_dependent_expr_template ../../gcc/cp/constexpr.c:7597 0x886e74 store_init_value(tree_node*, tree_node*, vec**, int) ../../gcc/cp/typeck2.c:764 0x744fcd check_initializer ../../gcc/cp/decl.c:7163 0x747317 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/cp/decl.c:7963 0x802791 cp_parser_init_declarator ../../gcc/cp/parser.c:22044 0x7e348a cp_parser_simple_declaration ../../gcc/cp/parser.c:14587 0x7e5049 cp_parser_declaration_statement ../../gcc/cp/parser.c:13722 0x7e5941 cp_parser_statement ../../gcc/cp/parser.c:11852 0x7e6254 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:12219 0x7e630f cp_parser_compound_statement ../../gcc/cp/parser.c:12168 0x8017f8 cp_parser_function_body ../../gcc/cp/parser.c:24236 0x8017f8 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:24287 0x801ca6 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:30246 0x802b6c cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.c:30162 0x802b6c cp_parser_init_declarator ../../gcc/cp/parser.c:21806 0x8052b4 cp_parser_single_declaration ../../gcc/cp/parser.c:30742 0x805495 cp_parser_template_declaration_after_parameters ../../gcc/cp/parser.c:30314 0x805c5b cp_parser_explicit_template_declaration ../../gcc/cp/parser.c:30580=