[Bug c++/41874] Incorrect "dereferencing type-punned pointer will break strict-aliasing rules" warning

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Nov 6 09:20:00 GMT 2009



------- 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



More information about the Gcc-bugs mailing list