https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101071
Bug ID: 101071
Summary: [9/10/11/12 Regression] ICE in
gimplify_init_constructor, at gimplify.c:5228
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
With file gcc/testsuite/g++.dg/cpp0x/variadic-alias2.C and option
-fno-elide-constructors, started between 20200308 and 20200412 :
$ g++-8 -c variadic-alias2.C -O2 -fno-elide-constructors
$
$ g++-12-20210613 -c variadic-alias2.C -O2 -fno-elide-constructors
z1.cc: In function 'void test_min_filter()':
z1.cc:97:3: internal compiler error: in gimplify_init_constructor, at
gimplify.c:5228
97 | (void)(computed{} = expected{});// compiles for identical types
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0xaec735 gimplify_init_constructor
../../gcc/gimplify.c:5228
0xaed305 gimplify_modify_expr_rhs
../../gcc/gimplify.c:5397
0xaf0bdc gimplify_modify_expr
../../gcc/gimplify.c:5759
0xae6b13 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gimplify.c:14079
0xaefdbc gimplify_target_expr
../../gcc/gimplify.c:6782
0xae6ae6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gimplify.c:14476
0xae9448 gimplify_stmt(tree_node**, gimple**)
../../gcc/gimplify.c:6863
0xae7646 gimplify_cleanup_point_expr
../../gcc/gimplify.c:6605
0xae7646 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gimplify.c:14472
0xae9448 gimplify_stmt(tree_node**, gimple**)
../../gcc/gimplify.c:6863
0xae99a1 gimplify_bind_expr
../../gcc/gimplify.c:1424
0xae74ca gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gimplify.c:14280
0xae9448 gimplify_stmt(tree_node**, gimple**)
../../gcc/gimplify.c:6863
0xaea46b gimplify_body(tree_node*, bool)
../../gcc/gimplify.c:15324
0xaea8bf gimplify_function_tree(tree_node*)
../../gcc/gimplify.c:15478
0x981ec7 cgraph_node::analyze()
../../gcc/cgraphunit.c:670
0x9847e7 analyze_functions
../../gcc/cgraphunit.c:1234
0x9851ad symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2508