Internal error, RHv6.0 i386 gcc v2.95.2

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Thu Mar 9 17:04:00 GMT 2000


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

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. All I found is the statement that it is
possible to have specializations as friends.

Regards,
Martin


More information about the Gcc-bugs mailing list