https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99109
Bug ID: 99109
Summary: [9/10/11 Regression] ICE: Error reporting routines
re-entered
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Started with r9 between 20180708 and 20180722 at -O2+ :
$ g++-11-20210214 -c pr88619.c -O2 -Wall -fsanitize=undefined
pr88619.c: In function 'int main()':
pr88619.c:13:9: warning: unused variable 'p2' [-Wunused-variable]
13 | void *p2 = __builtin_alloca (b);
| ^~
pr88619.c:8:1: error: alignment of array elements is greater than element size
8 | main ()
| ^~~~
'
Internal compiler error: Error reporting routines re-entered.
0xcd0f36 layout_type(tree_node*)
../../gcc/stor-layout.c:2599
0x801cfc build_cplus_array_type(tree_node*, tree_node*, int)
../../gcc/cp/tree.c:1110
0x80543c build_cplus_array_type(tree_node*, tree_node*, int)
../../gcc/cp/tree.c:1586
0x80543c strip_typedefs(tree_node*, bool*, unsigned int)
../../gcc/cp/tree.c:1586
0x6f599b type_to_string
../../gcc/cp/error.c:3300
0x6f65d5 cp_printer
../../gcc/cp/error.c:4380
0x16f133e pp_format(pretty_printer*, text_info*)
../../gcc/pretty-print.c:1475
0x16e52c1 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
../../gcc/diagnostic.c:1244
0x16e597e diagnostic_impl
../../gcc/diagnostic.c:1406
0x16e5ea2 warning_at(unsigned int, int, char const*, ...)
../../gcc/diagnostic.c:1543
0x1572bfd array_bounds_checker::check_mem_ref(unsigned int, tree_node*, bool)
../../gcc/gimple-array-bounds.cc:697
0x15735a9 array_bounds_checker::check_addr_expr(unsigned int, tree_node*)
../../gcc/gimple-array-bounds.cc:810
0x15736bf array_bounds_checker::check_array_bounds(tree_node**, int*, void*)
../../gcc/gimple-array-bounds.cc:913
0xf64ee5 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
../../gcc/tree.c:12099
0xa6956d walk_gimple_op(gimple*, tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
../../gcc/gimple-walk.c:253
0x156f821 check_array_bounds_dom_walker::before_dom_children(basic_block_def*)
../../gcc/gimple-array-bounds.cc:966
0x1560724 dom_walker::walk(basic_block_def*)
../../gcc/domwalk.c:309
0x1570f4a array_bounds_checker::check()
../../gcc/gimple-array-bounds.cc:980
0xf4b099 execute_vrp
../../gcc/tree-vrp.c:4517