https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63470
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-11-18 CC| |trippels at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 test % cat test.ii class A { public: virtual bool m_fn1 (); virtual const char **m_fn2 (int); virtual int m_fn3 (); }; class FTjackSupport : A { ~FTjackSupport (); bool m_fn1 (); bool m_fn4 (); const char ** m_fn2 (int) { } int _inited; int *_jackClient; int _activePathCount; } * a; void fn1 (...); void fn2 (void *); int fn3 (int *); FTjackSupport::~FTjackSupport () { m_fn4 (); } bool FTjackSupport::m_fn1 () { if (!_jackClient) return 0; for (int i=0; _activePathCount; ++i) if (m_fn2 (i)) fn2 (a); if (m_fn3 ()) fn2 (a); if (fn3 (_jackClient)) fn1 (0); } bool FTjackSupport::m_fn4 () { if (_inited && _jackClient) { m_fn1 (); return 0; } } markus@x4 test % g++ -c -O2 -finline-functions test.ii test.ii:50:1: internal compiler error: in estimate_edge_growth, at ipa-inline.h:300 } ^ 0xb6e70d estimate_edge_growth ../../gcc/gcc/ipa-inline.h:299 0xb6e70d estimate_size_after_inlining(cgraph_node*, cgraph_edge*) ../../gcc/gcc/ipa-inline-analysis.c:3835 0x1354db4 caller_growth_limits ../../gcc/gcc/ipa-inline.c:201 0x1354db4 can_inline_edge_p ../../gcc/gcc/ipa-inline.c:371 0x1356fa2 update_callee_keys ../../gcc/gcc/ipa-inline.c:1252 0x1358bfd inline_small_functions ../../gcc/gcc/ipa-inline.c:1834 0x1358bfd ipa_inline ../../gcc/gcc/ipa-inline.c:2198 0x1358bfd execute ../../gcc/gcc/ipa-inline.c:2568 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.