This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Clarification regarding a non-bug in gcc.gnu.org
- From: Hariharan S <hariharan at csa dot iisc dot ernet dot in>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Aug 2003 13:16:43 +0530 (IST)
- Subject: Re: Clarification regarding a non-bug in gcc.gnu.org
Hi,
The second sentence is "G++ now implements type access control on member
types. Defect report 45 clarifies that nested classes are members of the
class they are nested in, and so are granted access to private members of
that class". But according to Bjarne Stroustrup, section 9.7 of the C++
standard prohibits access (In the last mail I sent the mail transcript
between me and Bjarne Stroustrup). Please clarify which is correct.
Regards,
Hariharan S
On Wed, 20 Aug 2003, Nathan Sidwell wrote:
> Hariharan S wrote:
> > Hi,
> > I visited gcc.gnu.org page. In that page under the heading Non-bugs it is
> > written that "Nested classes can access private types of the containing
> > class". This is incorrect and I referred the book C++ Primer by Stanley B.
> > Lippman & Josie Lajoie. I also sent a mail to Bjarne Stroustrup regarding
> > this. He also said that what is given in the webpage is incorrect. He
> > asked you to refer section 9.7 of the standard. Given below is the reply
> > to my question regarding this. If my understanding of the statement in the
> > page is incorrect please give me an example.
> you did not read the second sentance.
>
> nathan
>