https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101732
Bug ID: 101732
Summary: ICE: symtab_node::verify failed
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: ---
Affects versions down to at least r5 (with -std=c++14) :
(gcc configured with --enable-checking=yes)
$ cat z1.cc
extern "C"
int f (auto x)
{
return x;
}
int g ()
{
return (f (1) != f (1.0));
}
$ g++-12-20210801 -c z1.cc -std=c++20
z1.cc:9:1: error: Two symbols with same comdat_group are not linked by the
same_comdat_group list.
9 | }
| ^
f/2 (int f(auto:1) [with auto:1 = double]) @0x7f61bc8d0220
Type: function definition analyzed
Visibility: no_reorder public weak comdat comdat_group:f one_only
previous sharing asm name: 1
References:
Referring:
Function flags: body
Called by: _Z1gv/0
Calls:
f/1 (int f(auto:1) [with auto:1 = int]) @0x7f61bc8d0110
Type: function definition analyzed
Visibility: no_reorder public weak comdat comdat_group:f one_only
next sharing asm name: 2
References:
Referring:
Function flags: body
Called by: _Z1gv/0
Calls:
z1.cc:9:1: internal compiler error: symtab_node::verify failed
0xb34732 symtab_node::verify_symtab_nodes()
../../gcc/symtab.c:1406
0xb4c07f symtab_node::checking_verify_symtab_nodes()
../../gcc/cgraph.h:678
0xb4c07f symbol_table::compile()
../../gcc/cgraphunit.c:2272
0xb5019f symbol_table::compile()
../../gcc/cgraphunit.c:2540
0xb5019f symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2537