This is the mail archive of the
mailing list for the GCC project.
Re: Inheritance Problem
- To: <gcc at gcc dot gnu dot org>
- Subject: Re: Inheritance Problem
- From: "Brian Osman" <bosman1 at nycap dot rr dot com>
- Date: Thu, 10 May 2001 11:17:38 -0400
- References: <200105101452.HAA13236@toledo.synopsys.com>
- Reply-To: "Brian Osman" <osmanb at acm dot org>
That was my initial reaction, but I'm not so sure. Look at 11.5 in the
standard. From my quick reading, it sounds like Carlo (and thus, the
compiler) is correct.
----- Original Message -----
From: "Joe Buck" <jbuck@synopsys.COM>
To: "Carlo Wood" <email@example.com>
Cc: "Olaf Petzold" <firstname.lastname@example.org>; <email@example.com>
Sent: Thursday, May 10, 2001 10:52 AM
Subject: Re: Inheritance Problem
> > "protected:" means that a derived class has access to that
> > member when it is a member of the same instance.
> This is not correct. In C++, access protection is based on classes,
> not instances. The object pointed to by "this" has no special status.