This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4793: friend template to a template class is not recognized as friend
- From: aoliva at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jagol-8jy3oxpJJ at suckfuell dot net, nobody at gcc dot gnu dot org
- Date: 25 Nov 2001 18:47:14 -0000
- Subject: Re: c++/4793: friend template to a template class is not recognized as friend
[Get raw message]
Synopsis: friend template to a template class is not recognized as friend
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sun Nov 25 10:47:14 2001
State-Changed-Why:
Your code is missing the template brackets and arguments when referencing a previously-declared template function. Try:
template <class S> friend int f<T,S>(T a, S b);
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4793&database=gcc