[Bug c++/19665] Can access private member function if it is virtual
falk at debian dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 28 09:42:00 GMT 2005
------- Additional Comments From falk at debian dot org 2005-01-28 09:41 -------
Since this cast has undefined behaviour, as a is not actually a B, any
behaviour of the program is acceptable, including what you get. Note that
"private" was never meant as a security feature, there are lots of ways to
circumvent it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19665
More information about the Gcc-bugs
mailing list