This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9230: Friend definitions in template classes
- From: reichelt at igpm dot rwth-aachen dot de
- To: bangerth at ticam dot utexas dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 8 Jan 2003 17:14:34 -0000
- Subject: Re: c++/9230: Friend definitions in template classes
- Reply-to: reichelt at igpm dot rwth-aachen dot de, bangerth at ticam dot utexas dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Friend definitions in template classes
State-Changed-From-To: open->feedback
State-Changed-By: reichelt
State-Changed-When: Wed Jan 8 09:14:33 2003
State-Changed-Why:
As I read paragraph 14.6.5.1 in the standard, this is the expected behavior:
> Friend classes or functions can be declared within a class template. When
> a template is instantiated, the names of its friends are treated as if
> the specialization had been explicitly declared at its point of instantiation.
For short: No instatiation, no declaration.
Convinced, Wolfgang?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9230