This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: local class and scoping
- To: martinb at coyotesystems dot com
- Subject: Re: local class and scoping
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 24 Feb 2000 22:59:40 +0100
- CC: gcc at gcc dot gnu dot org
- References: <3835AFD4.92E3C91@coyotesystems.com>
> 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