From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 12A513858D28; Sat, 29 Jan 2022 20:35:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12A513858D28 From: "dani at danielbertalan dot dev" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104284] New: [9/10/11/12 Regression] ICE: unexpected expression '' of kind implicit_conv_expr Date: Sat, 29 Jan 2022 20:35:45 +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: dani at danielbertalan dot dev 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, 29 Jan 2022 20:35:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104284 Bug ID: 104284 Summary: [9/10/11/12 Regression] ICE: unexpected expression '' of kind implicit_conv_expr Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dani at danielbertalan dot dev Target Milestone: --- Godbolt link: https://godbolt.org/z/8bTPra5jK The following code snippet causes an ICE on trunk (commit 3d41939c8799a51b1cd7f4610c06771bf6d52f15), and as far back as on 9.1 with -fchecking=3D2: --- struct EstablishedTiming { char m_dmt_id{}; }; auto x =3D [](auto) { constexpr EstablishedTiming established_timings3_bytes[]{{}}; }; --- ice1.ii: In lambda function: ice1.ii:5:80: internal compiler error: unexpected expression '' = of kind implicit_conv_expr 5 | x =3D [](auto) { constexpr EstablishedTiming established_timings3_bytes[]{{}}; }; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ 0x98a181 cxx_eval_constant_expression gcc/cp/constexpr.cc:7493 0x99109b cxx_eval_store_expression gcc/cp/constexpr.cc:5619 0x9860b4 cxx_eval_constant_expression gcc/cp/constexpr.cc:6763 0x98a626 cxx_eval_outermost_constant_expr gcc/cp/constexpr.cc:7707 0x98f770 fold_non_dependent_expr_template gcc/cp/constexpr.cc:8066 0xb0de7f build_non_dependent_expr(tree_node*) gcc/cp/pt.cc:28412 0xb6c547 finish_expr_stmt(tree_node*) gcc/cp/semantics.cc:870 0xa2d933 get_temp_regvar(tree_node*, tree_node*) gcc/cp/init.cc:4254 0xa2d933 build_vec_init(tree_node*, tree_node*, tree_node*, bool, int, int, vec**) gcc/cp/init.cc:4477 0xa2f503 build_aggr_init(tree_node*, tree_node*, int, int) gcc/cp/init.cc:2009 0x9d83ec build_aggr_init_full_exprs gcc/cp/decl.cc:7053 0x9d83ec check_initializer gcc/cp/decl.cc:7214 0x9fdc7f cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) gcc/cp/decl.cc:8108 0xaf15df cp_parser_init_declarator gcc/cp/parser.cc:22823 0xacb5e3 cp_parser_simple_declaration gcc/cp/parser.cc:15286 0xacd2fd cp_parser_declaration_statement gcc/cp/parser.cc:14367 0xacdaeb cp_parser_statement gcc/cp/parser.cc:12452 0xace9bd cp_parser_statement_seq_opt gcc/cp/parser.cc:12856 0xacea98 cp_parser_compound_statement gcc/cp/parser.cc:12808 0xacf797 cp_parser_function_body gcc/cp/parser.cc:25062=