This is the mail archive of the gcc@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: local class and scoping


>  I' not sure if any of this is legal c++, but i think that either both
> or none of the above should work, since they are doing exactly the same
> thing.

Thanks for your bug report. The mainline compiler (2.96 20000223
(experimental)) accepts both variants. The wording in ISO 14882 says
it should reject both codes, however, Core Issue 142 says that nested
classes are friends of the enclosing class. g++ implements the
proposed resolution of Issue 142, at least in the development branch.

Regards,
Martin


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