[Bug c++/44219] Public inheritance treated as private
zeljkoj at tesla dot rcub dot bg dot ac dot rs
gcc-bugzilla@gcc.gnu.org
Thu May 20 19:14:00 GMT 2010
------- Comment #3 from zeljkoj at tesla dot rcub dot bg dot ac dot rs 2010-05-20 19:13 -------
> > class A private members should be seen as private in class B
>
> No, they are private to A which means only A can access them, not any base
> classes. If you want that, use protected.
You are right. Thank you for a quick reply.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44219
More information about the Gcc-bugs
mailing list