public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dani at danielbertalan dot dev" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104284] New: [9/10/11/12 Regression] ICE: unexpected expression '<anonymous>' of kind implicit_conv_expr Date: Sat, 29 Jan 2022 20:35:45 +0000 [thread overview] Message-ID: <bug-104284-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104284 Bug ID: 104284 Summary: [9/10/11/12 Regression] ICE: unexpected expression '<anonymous>' 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=2: --- struct EstablishedTiming { char m_dmt_id{}; }; auto x = [](auto) { constexpr EstablishedTiming established_timings3_bytes[]{{}}; }; --- ice1.ii: In lambda function: ice1.ii:5:80: internal compiler error: unexpected expression '<anonymous>' of kind implicit_conv_expr 5 | x = [](auto) { constexpr EstablishedTiming established_timings3_bytes[]{{}}; }; | ^ 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<tree_node*, va_gc, vl_embed>**) 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
next reply other threads:[~2022-01-29 20:35 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-29 20:35 dani at danielbertalan dot dev [this message] 2022-01-29 21:40 ` [Bug c++/104284] " pinskia at gcc dot gnu.org 2022-01-29 21:41 ` pinskia at gcc dot gnu.org 2022-01-31 9:11 ` [Bug c++/104284] [9/10/11/12 Regression] ICE: unexpected expression '<anonymous>' of kind implicit_conv_expr since r9-6073-ge8b3c1bc3ba22dcf marxin at gcc dot gnu.org 2022-03-09 13:20 ` rguenth at gcc dot gnu.org 2022-03-10 17:55 ` mpolacek at gcc dot gnu.org 2022-03-24 22:44 ` cvs-commit at gcc dot gnu.org 2022-03-24 22:44 ` [Bug c++/104284] [9/10/11 " mpolacek at gcc dot gnu.org 2022-03-29 1:45 ` cvs-commit at gcc dot gnu.org 2022-03-29 1:48 ` [Bug c++/104284] [9/10 " mpolacek at gcc dot gnu.org 2024-03-26 17:18 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-104284-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).