http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831
--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-03 12:46:36 UTC --- So I think GCC is wrong to optimize away C::f() from impl.cpp and your analysis is correct. It is referenced from the vtable and we output that.