This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44219] Public inheritance treated as private
- From: "zeljkoj at tesla dot rcub dot bg dot ac dot rs" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2010 19:13:52 -0000
- Subject: [Bug c++/44219] Public inheritance treated as private
- References: <bug-44219-19211@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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