https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89335
Bug ID: 89335 Summary: [9 Regression] ICE with LTO -Wsuggest-final-methods: ICE during IPA pass devirt in types_same_for_odr, at ipa-devirt.c:391 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Created attachment 45702 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45702&action=edit 9 Line test case: g++ -O2 -flto -Wsuggest-final-methods input.ii $ g++ -O2 -flto -Wsuggest-final-methods input.ii during IPA pass: devirt lto1: internal compiler error: in types_same_for_odr, at ipa-devirt.c:391 0x638062 types_same_for_odr(tree_node const*, tree_node const*) ../../gcc/ipa-devirt.c:391 0xa7c1a3 possible_polymorphic_call_targets(tree_node*, long, ipa_polymorphic_call_context, bool*, void**, bool) ../../gcc/ipa-devirt.c:3390 0xa7d315 possible_polymorphic_call_targets(cgraph_edge*, bool*, void**, bool) ../../gcc/ipa-utils.h:118 0xa7d315 ipa_devirt ../../gcc/ipa-devirt.c:3781 0xa7d315 execute ../../gcc/ipa-devirt.c:4094 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. /data/local/gdb/gdb-inst/bin/ld: error: lto-wrapper failed