https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103936
Bug ID: 103936 Summary: [12 Regression] ICE with cs[5]{} Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: blocker Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- After r12-6326, we get an ICE for struct ss { ss() {}; }; struct C { ss s[1000]; }; int main() { C cs[5]{}; } ---- CUT ---- t.cc: In function ‘int main()’: t.cc:9:15: internal compiler error: in gimplify_expr, at gimplify.c:15747 9 | C cs[5]{}; | ^ 0x83bc3c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:15747 0xf1be86 gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:7026 0xf1eb30 gimplify_and_add(tree_node*, gimple**) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:495 0xf1eb30 gimplify_init_ctor_eval /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:4857 0xf1f4c3 gimplify_init_constructor /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:5255 0xf2bd17 gimplify_modify_expr /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:5914 0xf19368 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:14951 0xf2a137 gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:7026 0xf2a137 gimplify_compound_expr /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:6218 0xf199aa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:14941 0xf3d828 gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:7026 0xf3d828 gimplify_cleanup_point_expr /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:6766 0xf1993b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:15344 0xf1be86 gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:7026 0xf1a5db gimplify_statement_list /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:2014 0xf1a5db gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:15396 0xf1be86 gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:7026 0xf1a5db gimplify_statement_list /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:2014 0xf1a5db gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:15396 0xf3d828 gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc/gcc/gcc/gimplify.c:7026 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.