https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92676
Bug ID: 92676 Summary: [10 Regression] lto1: error: comdat-local function called by construct.constprop outside its comdat since r278669 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Since the revision, I see the following ICE: $ g++ -O2 -flto=auto -fPIC -DPIC -c 1.ii -o x.o && g++ 2.ii x.o 1.ii:169:5: warning: ‘xmlrpc_c::value_struct::operator std::map<std::__cxx11::basic_string<char>, xmlrpc_c::value>() const::cMemberWrapper::cMemberWrapper(int)’ used but never defined 169 | cMemberWrapper(int); | ^~~~~~~~~~~~~~ /usr/bin/ld: x.o (symbol from plugin): in function `std::piecewise_construct': (.text+0x0): multiple definition of `std::piecewise_construct'; /tmp/ccuP4DF0.o:(.bss+0x0): first defined here lto1: error: comdat-local function called by construct.constprop outside its comdat _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8xmlrpc_c5valueEEC2IJRS6_EJEEESt21piecewise_construct_tSt5tupleIJDpT_EESD_IJDpT0_EE.isra.0/49 (__ct_base .isra) @0x7f1faa6f02c0 Type: function definition analyzed Visibility: comdat_group:_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8xmlrpc_c5valueEEC5IJRS6_EJEEESt21piecewise_construct_tSt5tupleIJDpT_EESD_IJDpT0_EE Same comdat group as: _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8xmlrpc_c5valueEEC2IJRS6_EJEEESt21piecewise_construct_tSt5tupleIJDpT_EESD_IJDpT0_EE/15 References: Referring: Read from file: x.o Clone of _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8xmlrpc_c5valueEEC2IJRS6_EJEEESt21piecewise_construct_tSt5tupleIJDpT_EESD_IJDpT0_EE/15 Availability: local Function flags: count:1073741824 (estimated locally) local Called by: construct.constprop/46 (1073741824 (estimated locally),1.00 per call) (can throw external) Calls: get/30 (1073741824 (estimated locally),1.00 per call) (can throw external) forward/31 (1073741824 (estimated locally),1.00 per call) (can throw external) __ct_comp /32 (1073741824 (estimated locally),1.00 per call) (can throw external) during IPA pass: sra lto1: internal compiler error: verify_cgraph_node failed 0x887cbe cgraph_node::verify_node() ../../gcc/cgraph.c:3411 0x87a60c symtab_node::verify() ../../gcc/symtab.c:1268 0x87bd7f symtab_node::verify_symtab_nodes() ../../gcc/symtab.c:1288 0xaeb00f symtab_node::checking_verify_symtab_nodes() ../../gcc/cgraph.h:648 0xaeb00f symbol_table::remove_unreachable_nodes(_IO_FILE*) ../../gcc/ipa.c:672 0xbecd09 execute_todo ../../gcc/passes.c:2051 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. lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status