------- Comment #4 from rguenth at gcc dot gnu dot org 2009-11-06 09:20 ------- Btw, this warning is emitted from the frontend which only warns if it sees the address of an object casted, not random pointers (because of the many false positives). The frontend code also has no idea of the concept of a dynamic type.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41874