[Bug c++/19665] Can access private member function if it is virtual

2005-01-28 Thread falk at debian dot org
--- 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 way

[Bug c++/19665] Can access private member function if it is virtual

2005-01-28 Thread amit_choudhary at mindtree dot com
--- Additional Comments From amit_choudhary at mindtree dot com 2005-01-28 09:29 --- Created an attachment (id=8088) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8088&action=view) Preprocessed file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19665