[Bug c++/44219] Public inheritance treated as private

2010-05-20 Thread zeljkoj at tesla dot rcub dot bg dot ac dot rs
--- 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

[Bug c++/44219] Public inheritance treated as private

2010-05-20 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-05-20 18:51 --- > 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. -- pinskia at gcc dot gnu dot

[Bug c++/44219] Public inheritance treated as private

2010-05-20 Thread zeljkoj at tesla dot rcub dot bg dot ac dot rs
--- Comment #1 from zeljkoj at tesla dot rcub dot bg dot ac dot rs 2010-05-20 18:51 --- Created an attachment (id=20713) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20713&action=view) Preprocessed source of the test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44219