This is the mail archive of the gcc-bugs@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]

Re: Internal error, RHv6.0 i386 gcc v2.95.2


On Mar  8, 2000, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> wrote:

>> template <class T>
>> friend class one::A<T>;

I agree with Martin's reasoning.  This is an invalid declaration of a
partial specialization, regardless of the presence of `friend'.  A
valid template friend declaration must not qualify the template class
name with angle brackets, i.e., it must be:

>> template <class T>
>> friend class one::A;

Incidentally, the C++ standard does not allow partial specializations
to be declared as friends.  Only full specializations are allowed.

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaranį
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


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