[Bug c++/42340] templated member func vanish from assembler code when -O2 is used

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Dec 9 11:29:00 GMT 2009



------- 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



More information about the Gcc-bugs mailing list