------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-21 03:05 ------- I think this is invalid, you want: OBJ* p1 = const_cast<AnObject*>(objPtr); but I don't have prove at this point if this invalid.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22132