https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68092

--- Comment #2 from Christian Butcher <chrisb2244 at gmail dot com> ---
Created attachment 36582
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36582&action=edit
main function (1/3)

First of 3 files to demonstrate problem. (Not)Compiled with g++ -std=c++1z
conceptFunctionOverload.cpp class.cpp

Errors with:

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]) @0x7f2e61df0b80
  Type: function definition analyzed
  Visibility: forced_by_abi public weak comdat_group:_ZNK7myClassILm1EE3fooEv
one_only
  previous sharing asm name: 492
  References: _ZSt4cout/1176
(addr)_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_/805 (addr)
  Referring: 
  First run: 0
  Function flags: body
  Called by: 
  Calls: _ZNKSt6vectorIiSaIiEEixEm/807 (1.00 per call) _ZNSolsEPFRSoS_E/806
(1.00 per call) (can throw external) _ZNSolsEm/804 (1.00 per call) (can throw
external) _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc/803 (1.00 per
call) (can throw external) 
_ZNK7myClassILm1EE3fooEv/492 (int myClass<N>::foo() const requires
predicate((ConceptTest<N>)()) [with long unsigned int N = 1ul]) @0x7f2e61df0a10
  Type: function definition analyzed
  Visibility: forced_by_abi public weak comdat_group:_ZNK7myClassILm1EE3fooEv
one_only
  next sharing asm name: 493
  References: _ZSt4cout/1176
(addr)_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_/805 (addr)
  Referring: 
  First run: 0
  Function flags: body
  Called by: 
  Calls: _ZNKSt6vectorIiSaIiEEixEm/807 (1.00 per call) _ZNSolsEPFRSoS_E/806
(1.00 per call) (can throw external) _ZNSolsEm/804 (1.00 per call) (can throw
external) _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc/803 (1.00 per
call) (can throw external) 
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.

Reply via email to