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


> 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

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