http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46535
Alexandre Oliva <aoliva at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |FIXED --- Comment #7 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-01-12 05:03:37 UTC --- This was fixed by revision 168271. If we fail to bring in the vtbl ptr assignment from the cleanup stmt into the constexpr ctor, the inliner gets thoroughly confused as expectations as to indirect calls are unmet. I couldn't determine exactly why the inliner ends up thinking it inlined a function into itself, but I've already spend enough time getting acquainted with constexprs and the cgraph inliner for now, and the fix is definitely good, so I'll leave it at that.