http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48600
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW CC| |hubicka at gcc dot gnu.org, | |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-18 11:22:48 UTC --- Simplified testcase for -O: struct A { ~A (); }; const A &operator << (const A &, const char *); void bar () __attribute__ ((cold)); void foo (void) { for (;;) { A a; a << "foo"; bar (); } } Caused by http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161691 found is false and leads into infinite recursion in predict_paths_for_bb (alternating 3 bbs forever).