public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107198] New: [13 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752 Date: Mon, 10 Oct 2022 08:29:51 +0000 [thread overview] Message-ID: <bug-107198-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107198 Bug ID: 107198 Summary: [13 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++ 13.0.0 20221009 snapshot (g:e95e91eccd022a4a3a86da2749809fbad9afd20e) ICEs when compiling the following testcase, reduced from gcc/testsuite/g++.dg/eh/aggregate1.C, w/ -fno-exceptions: struct A { A() { throw 0; } A(int i) { throw i; } A(const A&) { throw 10; } }; void try_idx (int i) { int t = 10; try { struct X { A e1[2], e2; } x2[3] = { { 1, 2, 3 }, { 4, 5, 6 } }; } catch (int x) { t = x; } } % g++-13 -fno-exceptions -c bqn7qvfj.C bqn7qvfj.C: In constructor 'A::A()': bqn7qvfj.C:2:15: error: exception handling disabled, use '-fexceptions' to enable 2 | A() { throw 0; } | ^ bqn7qvfj.C: In function 'void try_idx(int)': bqn7qvfj.C:15:25: error: 'x' was not declared in this scope 15 | } catch (int x) { t = x; } | ^ bqn7qvfj.C:14:40: internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:752 14 | x2[3] = { { 1, 2, 3 }, { 4, 5, 6 } }; | ^ 0x6b0a60 cp_gimplify_expr(tree_node**, gimple**, gimple**) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/cp/cp-gimplify.cc:752 0xef9bb6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:16237 0xf00459 gimplify_init_ctor_eval_range /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:4881 0xf00459 gimplify_init_ctor_eval /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:4960 0xf002c5 gimplify_init_ctor_eval /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:4985 0xf00b93 gimplify_init_constructor /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:5399 0xf0e0db gimplify_modify_expr /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:6076 0xefa515 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:16328 0xf0c307 gimplify_stmt(tree_node**, gimple**) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:7187 0xf0c307 gimplify_compound_expr /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:6380 0xefad3c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:16318 0xefce06 gimplify_stmt(tree_node**, gimple**) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:7187 0xefe5fc gimplify_cleanup_point_expr /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:6928 0xefb05a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:16721 0xefce06 gimplify_stmt(tree_node**, gimple**) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:7187 0xefb7a3 gimplify_statement_list /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:2021 0xefb7a3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:16773 0xefce06 gimplify_stmt(tree_node**, gimple**) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:7187 0xefb7a3 gimplify_statement_list /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:2021 0xefb7a3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/gimplify.cc:16773
next reply other threads:[~2022-10-10 8:29 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-10 8:29 asolokha at gmx dot com [this message] 2022-10-10 9:23 ` [Bug c++/107198] " rguenth at gcc dot gnu.org 2022-10-10 13:31 ` [Bug c++/107198] [13 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752 since r13-3175-g6ffbf87ca66f4ed9 marxin at gcc dot gnu.org 2022-10-12 7:51 ` marxin at gcc dot gnu.org 2022-10-18 8:33 ` rguenth at gcc dot gnu.org 2023-04-26 6:56 ` [Bug c++/107198] [13/14 " rguenth at gcc dot gnu.org 2023-06-07 19:51 ` tschwinge at gcc dot gnu.org 2023-07-27 9:23 ` rguenth at gcc dot gnu.org 2023-09-06 6:16 ` gayathri.gottumukkala.27 at gmail dot com 2023-09-06 13:27 ` mpolacek at gcc dot gnu.org 2023-09-06 14:41 ` jason at gcc dot gnu.org 2023-09-12 17:27 ` cvs-commit at gcc dot gnu.org 2023-09-12 17:42 ` jason 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-107198-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).