This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5094: partial specialisation cannot be friend??
- From: rodrigc at gcc dot gnu dot org
- To: benko at sztaki dot hu, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 13 Dec 2001 03:58:51 -0000
- Subject: Re: c++/5094: partial specialisation cannot be friend??
Synopsis: partial specialisation cannot be friend??
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Wed Dec 12 19:58:51 2001
State-Changed-Why:
This is not a bug in gcc.
This is not legal code. When I compile with
the Digital Unix C++ compiler, I get the
following compilation errors:
cxx: Error: specfriend.cc, line 67: "c" has already been declared in the
current scope
friend class c;
-----------------^
cxx: Error: specfriend.cc, line 71: class "c" may not have a template
argument list
friend class d<c<T> >;
-----------------^
cxx: Error: specfriend.cc, line 71: class "c" may not have a template
argument list
friend class d<c<T> >;
-----------------^
cxx: Error: specfriend.cc, line 71: invalid partial specialization --
class
"d<<error-type>>" is already fully specialized
friend class d<c<T> >;
---------------^
cxx: Error: specfriend.cc, line 83: class "c" may not have a template
argument list
friend class c<d>;
---------------^
cxx: Info: 5 errors detected in the compilation of "specfriend.cc".
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=5094&database=gcc