https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68092
--- Comment #5 from Christian Butcher <chrisb2244 at gmail dot com> --- Comment 2 has the wrong error (previous testcase with cout statements) Correct error: class.cpp:13:26: error: Two symbols with same comdat_group are not linked by the same_comdat_group list. template class myClass<1>; ^ _ZNK7myClassILm1EE3fooEv/493 (int myClass<N>::foo() const [with long unsigned int N = 1ul]) @0x7f9a42be1b80 Type: function definition analyzed Visibility: forced_by_abi public weak comdat_group:_ZNK7myClassILm1EE3fooEv one_only previous sharing asm name: 492 References: Referring: First run: 0 Function flags: body Called by: Calls: _ZNKSt6vectorIiSaIiEEixEm/803 (1.00 per call) _ZNK7myClassILm1EE3fooEv/492 (int myClass<N>::foo() const requires predicate((ConceptTest<N>)()) [with long unsigned int N = 1ul]) @0x7f9a42be1a10 Type: function definition analyzed Visibility: forced_by_abi public weak comdat_group:_ZNK7myClassILm1EE3fooEv one_only next sharing asm name: 493 References: Referring: First run: 0 Function flags: body Called by: Calls: _ZNKSt6vectorIiSaIiEEixEm/803 (1.00 per call) class.cpp:13:26: internal compiler error: symtab_node::verify failed 0x904339 symtab_node::verify_symtab_nodes() ../../gcc-svn-sources/gcc/symtab.c:1126 0x9169f5 symbol_table::compile() ../../gcc-svn-sources/gcc/cgraphunit.c:2377 0x919687 symbol_table::compile() ../../gcc-svn-sources/gcc/cgraphunit.c:2536 0x919687 symbol_table::finalize_compilation_unit() ../../gcc-svn-sources/gcc/cgraphunit.c:2562 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.