http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59831
Bug ID: 59831 Summary: ice in cgraph_speculative_call_info with -O3 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 31845 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31845&action=edit gzipped C++ source code I just compiled the attached code with gcc trunk 20140115 on a x86_64 box with flag -O3 and it said In file included from StringA.h:32:0, from file.h:33, from file.C:33: VarArray.h: In function ‘T& VarArray<T>::operator[](int) [with T = string]’: VarArray.h:123:8: internal compiler error: in cgraph_speculative_call_info, at cgraph.c:1197 0x82cdfb cgraph_speculative_call_info(cgraph_edge*, cgraph_edge*&, cgraph_edge*&, ipa_ref*&) ../../src/trunk/gcc/cgraph.c:1197 0x82cf5f cgraph_resolve_speculation(cgraph_edge*, tree_node*) ../../src/trunk/gcc/cgraph.c:1224 0x831030 cgraph_make_edge_direct(cgraph_edge*, cgraph_node*) ../../src/trunk/gcc/cgraph.c:1286 0x83123f cgraph_set_call_stmt(cgraph_edge*, gimple_statement_base*, bool) ../../src/trunk/gcc/cgraph.c:825 0x831281 cgraph_set_call_stmt(cgraph_edge*, gimple_statement_base*, bool) ../../src/trunk/gcc/cgraph.c:802 This looks different to bug # 58477 to me.