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  9, 2000, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> wrote:

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

> Out of curiosity, and off-topic: Where exactly does it allow that?

[temp.friend]/1 says a friend can be [...] a specialization of a
funciton template or class template [...].  The example just below
exemplifies that.

> There is a core issue 68 where the grammar mistakenly disallows
> specializations, but even with this fixed, I don't see where it says
> what the meaning of

>   friend class-key ::-opt nested-name-specifier-opt template-id

> would be, if it where allowed.

IMO, it's just implied by the fact that such a full specialization of
a class template is a class.

-- 
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]