[Bug c/66265] strict aliasing with O2 fails to generate correct code and gives no warnings
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 25 07:50:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66265
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There is a warning with -Wstrict-aliasing=1 , if you read the documentation,
you'd find there are various levels that differ in the amount of false
positives. The code is obviously invalid.
More information about the Gcc-bugs
mailing list