https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61623
Bug ID: 61623 Summary: [4.10 Regression] ICE: verify_symtab failed: Two symbols with same comdat_group are not linked by the same_comdat_group list. Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 33012 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33012&action=edit reduced testcase Compiler output: $ gcc -Os testcase.C testcase.C:7:8: error: Two symbols with same comdat_group are not linked by the same_comdat_group list. A a (0); ^ _ZN1AC1Ei/8 (A::A(int)) @0x7f200bc92170 Type: function definition analyzed Visibility: externally_visible public weak comdat comdat_group:_ZN1AC5Ei one_only Same comdat group as: _ZN1AC2Ei/7 References: Referring: Availability: available First run: 0 Function flags: body Called by: _Z41__static_initialization_and_destruction_0ii/19 (0.07 per call) Calls: _ZN1AC4Ei.isra.0/31 (1.00 per call) _ZN1AC1Ei/8 (A::A(int)) @0x7f200bc92170 Type: function definition analyzed Visibility: externally_visible public weak comdat comdat_group:_ZN1AC5Ei one_only Same comdat group as: _ZN1AC2Ei/7 References: Referring: Availability: available First run: 0 Function flags: body Called by: _Z41__static_initialization_and_destruction_0ii/19 (0.07 per call) Calls: _ZN1AC4Ei.isra.0/31 (1.00 per call) testcase.C:7:8: internal compiler error: verify_symtab failed 0x9407e6 verify_symtab() /mnt/svn/gcc-trunk/gcc/symtab.c:1192 0xb45040 symtab_remove_unreachable_nodes(bool, _IO_FILE*) /mnt/svn/gcc-trunk/gcc/ipa.c:591 0x94e93b ipa_passes /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2064 0x94e93b compile() /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2186 0x94f3d4 finalize_compilation_unit() /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2341 0x72860e cp_write_global_declarations() /mnt/svn/gcc-trunk/gcc/cp/decl2.c:4647 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. Tested revisions: r212007 - ICE 4_9 r211338 - OK