This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]