------- Comment #2 from redi at gcc dot gnu dot org 2009-12-09 11:29 ------- If another translation unit is relying on finding an instantiation in bug.o then you should use an explicit instantiation to ensure it is present, or the other translation unit should include the definition of B::f
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42340