This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8056: Friends and partial specializations
- From: lerdsuwa at gcc dot gnu dot org
- 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: 24 Nov 2002 11:25:56 -0000
- Subject: Re: c++/8056: Friends and partial specializations
- Reply-to: lerdsuwa at gcc dot gnu dot org, 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: Friends and partial specializations
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Nov 24 03:25:55 2002
State-Changed-Why:
Not a bug.
For the first problem, it is forbidden by 14.5.3 p9:
Friend declaration shall not declare partial
specializations.
For the second problem, 14.5.3 p4 says:
A template friend declaration specifies that all
specializations of that template, whether they are
implicitly instantiated (14.7.1), partially specialized
(14.5.4) or explicitly specialized (14.7.3), are friends
of the class containing the template friend declaration.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8056