public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4793: friend template to a template class is not recognized as friend
@ 2001-11-20 18:07 aoliva
0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-11-20 18:07 UTC (permalink / raw)
To: gcc-bugs, gcc-gnats, gcc-prs, jagol-8jy3oxpJJ, nobody
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/4793: friend template to a template class is not recognized as friend
@ 2001-11-20 18:07 aoliva
0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-11-20 18:07 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4793; it has been noted by GNATS.
From: aoliva@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
jagol-8jy3oxpJJ@suckfuell.net, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/4793: friend template to a template class is not recognized as friend
Date: 25 Nov 2001 18:47:14 -0000
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-25 18:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-20 18:07 c++/4793: friend template to a template class is not recognized as friend aoliva
-- strict thread matches above, loose matches on Subject: below --
2001-11-20 18:07 aoliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).