This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8813: members of a nested class should not have special access to members of an enclosing class
- From: bangerth at dealii dot org
- To: Boris dot Maric at consol dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 4 Dec 2002 19:03:02 -0000
- Subject: Re: c++/8813: members of a nested class should not have special access to members of an enclosing class
- Reply-to: bangerth at dealii dot org, Boris dot Maric at consol dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: members of a nested class should not have special access to members of an enclosing class
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Wed Dec 4 11:03:01 2002
State-Changed-Why:
There is a defect report to the C++ standard that treats this.
The resolution is that the elements of member classes have
the same access as member functions, for example, so they
can also access private members of the enclosing class.
I personally don't like this resolution, but it is there
and is part of the C++ standard.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8813