Compiler output: $ gcc -O -fno-early-inlining -fipa-cp -fipa-cp-clone testcase.C testcase.C:3:30: internal compiler error: in ipcp_init_cloned_node, at ipa-cp.c:190 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
----- testcase.C ----- struct S { virtual void xyzzy (); }; void foo (S * s) { s->xyzzy (); } void bar () { S s; foo (&s); } ---------------------- Almost the same as g++.dg/opt/devirt1.C - only the constructor is removed. Tested revisions: r163921 - crash r163636 - crash r161659 - OK r161170 - OK -- Summary: [4.6 Regression] g++.dg/opt/devirt1.C ICEs in ipcp_init_cloned_node, at ipa-cp.c:190 with -fno-early- inlining -fipa-cp-clone Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45563