https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64139
Bug ID: 64139 Summary: ice in possible_polymorphic_call_targets, at ipa-devirt.c:2410 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Created attachment 34155 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34155&action=edit gzipped C++ source code I just tried to compile the attached C++ code with the latest trunk dated 20141130 on a Fedora Linux x86_64 box. The compiler said /home/dcb/rpmbuild/BUILD/spatialindex-src-1.8.1/src/mvrtree/MVRTree.cc:1360:1: i nternal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:24 10 } ^ 0xa47df4 possible_polymorphic_call_targets(tree_node*, long, ipa_polymorphic_cal l_context, bool*, void**, bool) ../../src/trunk/gcc/ipa-devirt.c:2410 0x17e4127 ipa_get_indirect_edge_target_1(cgraph_edge*, vec<tree_node*, va_heap, vl_ptr>, vec<ipa_polymorphic_call_context, va_heap, vl_ptr>, vec<ipa_agg_jump_fu nction*, va_heap, vl_ptr>, ipa_agg_replacement_value*, bool*) ../../src/trunk/gcc/ipa-cp.c:1872 0xa5ebbd estimate_edge_devirt_benefit(cgraph_edge*, int*, int*, vec<tree_node*, va_heap, vl_ptr>, vec<ipa_polymorphic_call_context, va_heap, vl_ptr>, vec<ipa_ag g_jump_function*, va_heap, vl_ptr>) ../../src/trunk/gcc/ipa-inline-analysis.c:2999 0xa5ebbd estimate_edge_size_and_time(cgraph_edge*, int*, int*, int*, int, vec<tr ee_node*, va_heap, vl_ptr>, vec<ipa_polymorphic_call_context, va_heap, vl_ptr>, vec<ipa_agg_jump_function*, va_heap, vl_ptr>, int*) ../../src/trunk/gcc/ipa-inline-analysis.c:3040 0xa5c7c4 estimate_calls_size_and_time(cgraph_node*, int*, int*, int*, int*, unsi gned int, vec<tree_node*, va_heap, vl_ptr>, vec<ipa_polymorphic_call_context, va _heap, vl_ptr>, vec<ipa_agg_jump_function*, va_heap, vl_ptr>) ../../src/trunk/gcc/ipa-inline-analysis.c:3099 0xa5ab25 estimate_node_size_and_time(cgraph_node*, unsigned int, vec<tree_node*, va_heap, vl_ptr>, vec<ipa_polymorphic_call_context, va_heap, vl_ptr>, vec<ipa_a gg_jump_function*, va_heap, vl_ptr>, int*, int*, int*, int*, vec<inline_param_su mmary, va_heap, vl_ptr>) Flag -O2 required.