This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/5094: partial specialisation cannot be friend??


The following reply was made to PR c++/5094; it has been noted by GNATS.

From: rodrigc@gcc.gnu.org
To: benko@sztaki.hu, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
  gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/5094: partial specialisation cannot be friend??
Date: 13 Dec 2001 03:58:51 -0000

 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]