------- Additional Comments From mhcox at bluezoosoftware dot com 2005-06-04
17:17 -------
Subject: RE: Nested class has access to Nestee's private member functions
>From my copy of the C++ standard (ISO/IEC 14882:1998(E)) [class.access.net]
11.8.1:
The members of a nested class have no special access to members of
an enclosing class, nor to classes or
Functions that have granted friendship to an enclosing class; the
usual access ruls (clause 11) shal be
Obeyed. The members of an enclosing class have no special access to
members of a nested class; the usual
Access rules (clause 11) shall be obeyed.
I read suggestions that this should be changed in the next standard, but I
don't think it's changed yet. Therefore, the resolution shouldn't be
INVALID. It either needs to fixed or documented as a non-standard extension
(in anticipation of the next standard's changes).
Mike
-----Original Message-----
From: bangerth at dealii dot org [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 11:46 AM
To: [EMAIL PROTECTED]
Subject: [Bug c++/21901] Nested class has access to Nestee's private member
functions
------- Additional Comments From bangerth at dealii dot org 2005-06-03
17:46 ------- Nested class, like all other members of a class, have access
to private and protected members. That's what the standard says.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21901
------- You are receiving this mail because: ------- You reported the bug,
or are watching the reporter.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21901