public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107198] New: [13 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752
@ 2022-10-10  8:29 asolokha at gmx dot com
  2022-10-10  9:23 ` [Bug c++/107198] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: asolokha at gmx dot com @ 2022-10-10  8:29 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-09-12 17:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-10  8:29 [Bug c++/107198] New: [13 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752 asolokha at gmx dot com
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

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).