[Bug c++/56328] Explicit instantiation of inline function template works for base template, fails for specialized template

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 14 18:45:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56328

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-14 18:44:41 UTC ---
(In reply to comment #0)
> Why does the compiler treat a specialized template differently from the base
> template when it comes to explicit instantiation of inline function templates?

Simple answer, inline functions have to appear in every TU that they are used.



More information about the Gcc-bugs mailing list