[Bug c/23421] unsigned long to float conversion by casting unsigned long* to float* fails in -O2 builds.
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 16 12:35:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-16 12:35 -------
Yes because you are violating C aliasing rules.
*** This bug has been marked as a duplicate of 21920 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
Summary|unsigned long to float |unsigned long to float
|conversion by casting |conversion by casting
|unsigned long* to float* |unsigned long* to float*
|fails in -O2 builds. |fails in -O2 builds.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23421
More information about the Gcc-bugs
mailing list