https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64988
Bug ID: 64988 Summary: [5 Regression] ICE: verify_cgraph_node failed: Alias and target's comdat groups differs with -fdeclone-ctor-dtor Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 34708 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34708&action=edit reduced testcase Compiler output: $ gcc -O -fdeclone-ctor-dtor testcase.C testcase.C:10:4: error: Alias and target's comdat groups differs D d; ^ _ZN1DD0Ev/36 (virtual D::~D()) @0x7fc5f0160000 Type: function definition analyzed Visibility: externally_visible public weak comdat comdat_group:_ZN1DD5Ev one_only section:.text._ZN1DD0Ev (implicit_section) virtual artificial Address is taken. References: Referring: *.LTHUNK7/43 (alias)_ZTV1D/29 (addr) Availability: available First run: 0 Function flags: body Called by: Calls: _ZdlPv/59 (1.00 per call) _ZN1DD1Ev/79 (inlined) (1.00 per call) (can throw external) *.LTHUNK7/43 (virtual void *.LTHUNK7()) @0x7fc5f0160ab8 Type: function definition analyzed alias cpp_implicit_alias Visibility: prevailing_def_ironly section:.text._ZN1DD0Ev (implicit_section) virtual artificial References: _ZN1DD0Ev/36 (alias) Referring: Availability: available First run: 0 Function flags: Called by: _ZThn8_N1DD0Ev/44 (1.00 per call) Calls: testcase.C:10:4: internal compiler error: verify_cgraph_node failed 0x9e3afd cgraph_node::verify_node() /mnt/svn/gcc-trunk/gcc/cgraph.c:3100 0x9d8997 symtab_node::verify() /mnt/svn/gcc-trunk/gcc/symtab.c:1161 0x9d9c27 symtab_node::verify_symtab_nodes() /mnt/svn/gcc-trunk/gcc/symtab.c:1181 0xc1cd48 symbol_table::remove_unreachable_nodes(_IO_FILE*) /mnt/svn/gcc-trunk/gcc/ipa.c:674 0x183c7be ipa_inline /mnt/svn/gcc-trunk/gcc/ipa-inline.c:2307 0x183c7be execute /mnt/svn/gcc-trunk/gcc/ipa-inline.c:2693 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: r220527 - ICE 4_9 r219040 - OK