[Bug c++/63263] friend declaration of function template specialization gets confused when specialization was forward declared.
carlo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Sep 14 21:22:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63263
--- Comment #1 from Carlo Wood <carlo at gcc dot gnu.org> ---
Guess the float isn't needed:
template<typename T> void f(T&) { T(1); }
struct B;
template<> void f(B&) { }
struct B { friend void f<B>(B&); };
void g() { B b; f(b); }
More information about the Gcc-bugs
mailing list