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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-06
     Ever confirmed|0                           |1

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Although with trunk it crashes the compiler:

l.cc: In member function 'void S::_foo(const ConverterFunction&, const
ConverterFunction&)':
l.cc:20:34: warning: unused parameter 'converterBack' [-Wunused-parameter]
   20 |         const ConverterFunction& converterBack)
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
l.cc: At global scope:
l.cc:29:1: error: Two symbols with same comdat_group are not linked by the
same_comdat_group list.
   29 | }
      | ^
_ZNSt9_Any_data9_M_accessIZN1S4_fooERKSt8functionIFddEES6_Ed_UldE_EERT_v/919
(_Tp& std::_Any_data::_M_access() [with _Tp = S::<lambda(double)>])
@0x7f0881f599d8
  Type: function definition analyzed
  Visibility: no_reorder public weak comdat
comdat_group:_ZNSt9_Any_data9_M_accessIZN1S4_fooERKSt8functionIFddEES6_Ed_UldE_EERT_v
one_only visibility_specified
  previous sharing asm name: 915
  References: 
  Referring: 
  Function flags: body
  Called by: static void
std::_Function_base::_Base_manager<_Functor>::_M_destroy(std::_Any_data&,
std::true_type) [with _Functor = S::<lambda(double)>]/877 
  Calls: void* std::_Any_data::_M_access()/279 
_ZNSt9_Any_data9_M_accessIZN1S4_fooERKSt8functionIFddEES6_Ed_UldE_EERT_v/915
(_Tp& std::_Any_data::_M_access() [with _Tp = S::<lambda(double)>])
@0x7f0881f59438
  Type: function definition analyzed
  Visibility: no_reorder public weak comdat
comdat_group:_ZNSt9_Any_data9_M_accessIZN1S4_fooERKSt8functionIFddEES6_Ed_UldE_EERT_v
one_only visibility_specified
  next sharing asm name: 919
  References: 
  Referring: 
  Function flags: body
  Called by: static void
std::_Function_base::_Base_manager<_Functor>::_M_destroy(std::_Any_data&,
std::true_type) [with _Functor = S::<lambda(double)>]/872 
  Calls: void* std::_Any_data::_M_access()/279 
l.cc:29:1: internal compiler error: symtab_node::verify failed
0xb050c9 symtab_node::verify_symtab_nodes()
        /home/jwakely/src/gcc/gcc/gcc/symtab.c:1260
0xb18564 symtab_node::checking_verify_symtab_nodes()
        /home/jwakely/src/gcc/gcc/gcc/cgraph.h:637
0xb18564 symbol_table::compile()
        /home/jwakely/src/gcc/gcc/gcc/cgraphunit.c:2602
0xb1a99c symbol_table::compile()
        /home/jwakely/src/gcc/gcc/gcc/cgraphunit.c:2599
0xb1a99c symbol_table::finalize_compilation_unit()
        /home/jwakely/src/gcc/gcc/gcc/cgraphunit.c:2865
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to