[Bug c/60581] gcc doesn't isssue a strict aliasing warning on a code that seems to break it
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 19 10:01:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60581
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |alias, diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-03-19
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The strict-aliasing warnings are broken - they are too easily to silence (the
(char *) cast for example). Generally warning for TBAA violations is very hard
if you want to avoid gazillions of false positives or gazillions of false
negatives. The present warning code delivers neither :/
More information about the Gcc-bugs
mailing list