[Bug c++/31454] "protected" protects againt derived class
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Apr 3 03:37:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-03 04:36 -------
This is not a bug. You are allowed to call protected functions on this but
nobody elses.
This has nothing to do with derived class or not. This is just how C++ works.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31454
More information about the Gcc-bugs
mailing list