Clarification regarding a non-bug in gcc.gnu.org
Hariharan S
hariharan@csa.iisc.ernet.in
Thu Aug 21 07:46:00 GMT 2003
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
>
More information about the Gcc-bugs
mailing list