https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61654
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-06-30 Component|c++ |middle-end CC| |trippels at gcc dot gnu.org Ever confirmed|0 |1 Summary|[4.9.1] ICE in |[4.9/4.10 Regression] ICE |release_function_body, at |in release_function_body, |cgraph.c:1699 |at cgraph.c:1699 Target Milestone|--- |4.9.1 Known to fail| |4.10.0 --- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 tmp % cat font.ii class A { virtual int m_fn1 (int, int = 0) = 0; int m_fn2 (const int &); int _nPrior; }; class B : virtual A { int _lDefault; int m_fn1 (int, int); }; int A::m_fn2 (const int &) { return m_fn1 ('\0'); } int B::m_fn1 (int, int) { return 0 ?: _lDefault; } markus@x4 tmp % g++ -m32 -c -O3 font.ii font.ii: In function ‘<built-in>’: font.ii:14:50: internal compiler error: in release_function_body, at cgraph.c:1691 int B::m_fn1 (int, int) { return 0 ?: _lDefault; } ^ 0x841577 release_function_body(tree_node*) ../../gcc/gcc/cgraph.c:1691 0x841626 cgraph_release_function_body(cgraph_node*) ../../gcc/gcc/cgraph.c:1727 0x841aa6 cgraph_remove_node(cgraph_node*) ../../gcc/gcc/cgraph.c:1812 0xa1c3eb symtab_remove_unreachable_nodes(bool, _IO_FILE*) ../../gcc/gcc/ipa.c:463 0xace957 execute_todo ../../gcc/gcc/passes.c:1843 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.