https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80763
Bug ID: 80763 Summary: -O3 causes error: inline clone in same comdat group list Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 41360 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41360&action=edit gzipped C++ source code The attached code does this with -O3 wavetable.cpp:622:1: error: inline clone in same comdat group list _ZThn232_N12calf_plugins22wavetable_audio_module7processEjjjj.artificial_thunk.36/3381 (_ZThn232_N12calf_plugins22wavetable_audio_module7processEjjjj.artificial_thunk.36) @0x7f866b098b80 Type: function definition analyzed Visibility: comdat_group:_ZN12calf_plugins12audio_moduleINS_18wavetable_metadataEE13process_sliceEjj artificial Same comdat group as: _ZThn232_N12calf_plugins22wavetable_audio_module7processEjjjj.artificial_thunk.36/3301 next sharing asm name: 3301 References: Referring: Function _ZThn232_N12calf_plugins22wavetable_audio_module7processEjjjj.artificial_thunk.36/3381 is inline copy in virtual uint32_t calf_plugins::audio_module<calf_plugins::wavetable_metadata>::_ZThn232_N12calf_plugins12audio_moduleINS_18wavetable_metadataEE13process_sliceEjj(uint32_t, uint32_t)/2956 Clone of _ZThn232_N12calf_plugins22wavetable_audio_module7processEjjjj.artificial_thunk.36/3301 Availability: local First run: 0 Function flags: local Thunk fixed offset -232 virtual value 0 has virtual offset 0) Called by: _ZN12calf_plugins12audio_moduleINS_18wavetable_metadataEE13process_sliceEjj/3380 (speculative) (inlined) (3.90 per call) (can throw external) Calls: _ZN12calf_plugins22wavetable_audio_module7processEjjjj.constprop.35/3300 (3.90 per call) wavetable.cpp:622:1: internal compiler error: verify_cgraph_node failed 0x9853ab cgraph_node::verify_node() ../../trunk/gcc/cgraph.c:3507 0x979724 symtab_node::verify() ../../trunk/gcc/symtab.c:1191 0x979724 symtab_node::verify_symtab_nodes() ../../trunk/gcc/symtab.c:1211 0x98daa3 symtab_node::checking_verify_symtab_nodes() ../../trunk/gcc/cgraph.h:613 The problem seems to exist between revisions 247438 and 247811. I'll have a go at trying to reduce that range. I'll also have a go at reducing the code.