This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Doesn't compile. Is it a bug?
On Wed, Jan 7, 2009 at 11:25 AM, Juan Linietsky <reduzio@gmail.com> wrote:
> This code doesn't compile. It complains that A::_say is protected when
> in reality it's being used from B. calling A::_say works fine, but
> obtaining the address fails compilation.
This is not a bug since A::_say is protected and therefor if it was
allowed the user could be able to call A::_say from a place normally
not allowed to call A::_say.
Thanks,
Andrew Pinski