http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58252
Bug ID: 58252 Summary: ice in gimple_get_virt_method_for_binfo with -O2 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Created attachment 30705 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30705&action=edit gzipped C++ source code I just tried to compile package omniORB-4.1.6-5.fc20 with gcc 4.9 trunk dated 20130826. It said In file included from irstub.cc:37:0: ../omniORB4/irSK.cc:13580:59: internal compiler error: in gimple_get_virt_method_for_binfo, at gimple-fold.c:3142 POA_CORBA::AbstractInterfaceDef::~AbstractInterfaceDef() {} ^ 0x92e140 gimple_get_virt_method_for_binfo(long, tree_node*) ../../src/trunk/gcc/gimple-fold.c:3141 0x96aed4 record_binfo ../../src/trunk/gcc/ipa-devirt.c:439 0x96ae72 record_binfo ../../src/trunk/gcc/ipa-devirt.c:454 0x96ae72 record_binfo ../../src/trunk/gcc/ipa-devirt.c:454 0x96b0e4 possible_polymorphic_call_targets_1 ../../src/trunk/gcc/ipa-devirt.c:474 0x96b123 possible_polymorphic_call_targets_1 ../../src/trunk/gcc/ipa-devirt.c:480 0x96c098 possible_polymorphic_call_targets(tree_node*, long, bool*, void**) ../../src/trunk/gcc/ipa-devirt.c:652 0x7de330 possible_polymorphic_call_targets ../../src/trunk/gcc/ipa-utils.h:82 0x7de330 analyze_functions ../../src/trunk/gcc/cgraphunit.c:936 0x7dfa85 finalize_compilation_unit() ../../src/trunk/gcc/cgraphunit.c:2200 0x5f3900 cp_write_global_declarations() ../../src/trunk/gcc/cp/decl2.c:4364 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. Preprocessed source code attached. Flag -O2 required.