This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21901] Nested class has access to Nestee's private member functions
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2005 15:29:26 -0000
- Subject: [Bug c++/21901] Nested class has access to Nestee's private member functions
- References: <20050603145948.21901.mhcox@bluezoosoftware.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-03 15:29 -------
Why do you think this is invalid code and should be rejected?
This is accepted by Comeau's C++ compiler too.
I don't have the standard right in the front of me right now but I think this is valid code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21901