c++/5094: partial specialisation cannot be friend??
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Wed Dec 12 20:16:00 GMT 2001
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
More information about the Gcc-bugs
mailing list