https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61214
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-06-03
Ever confirmed|0 |1
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
The current trunk (r211157) doesn't devirtualize the call to Foo::clone; it
goes through the vtable even though we know which vtable we're dealing with. I
would guess that this is due to a change to can_refer_decl_in_current_unit_p.