http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46535
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-19 10:17:03 UTC --- Created attachment 22455 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22455 reduced testcase Reduced with Index: gcc/ipa-inline.c =================================================================== --- gcc/ipa-inline.c (revision 166907) +++ gcc/ipa-inline.c (working copy) @@ -1175,6 +1175,7 @@ cgraph_decide_inlining_of_small_function { if (where->decl == edge->callee->decl) break; + gcc_assert (where != where->callers->caller); where = where->callers->caller; } if (where->global.inlined_to)