https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98216
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> --- Related testcase which may or may not be caused by the same underlying bug: $ cat testcase.C template <double s> void foo() {} template void foo<-1.0>(); template void foo<-2.0>(); $ g++ -std=c++20 testcase.C testcase.C:3:26: error: Two symbols with same comdat_group are not linked by the same_comdat_group list. 3 | template void foo<-2.0>(); | ^ _Z3fooILdffffffff00000000EEvv/1 (void foo() [with double s = -2.0e+0]) @0x7fdb12c4aee0 Type: function definition analyzed Visibility: force_output forced_by_abi no_reorder public weak comdat_group:_Z3fooILdffffffff00000000EEvv one_only previous sharing asm name: 0 References: Referring: Function flags: body Called by: Calls: _Z3fooILdffffffff00000000EEvv/0 (void foo() [with double s = -1.0e+0]) @0x7fdb12c4add0 Type: function definition analyzed Visibility: force_output forced_by_abi no_reorder public weak comdat_group:_Z3fooILdffffffff00000000EEvv one_only next sharing asm name: 1 References: Referring: Function flags: body Called by: Calls: testcase.C:3:26: internal compiler error: symtab_node::verify failed 0xbebe81 symtab_node::verify_symtab_nodes() /home/patrick/code/gcc/gcc/symtab.c:1406 0xc00586 symtab_node::checking_verify_symtab_nodes() /home/patrick/code/gcc/gcc/cgraph.h:675 0xc00586 symbol_table::compile() /home/patrick/code/gcc/gcc/cgraphunit.c:2277 0xc02f67 symbol_table::compile() /home/patrick/code/gcc/gcc/cgraphunit.c:2274 0xc02f67 symbol_table::finalize_compilation_unit() /home/patrick/code/gcc/gcc/cgraphunit.c:2542