This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23421] unsigned long to float conversion by casting unsigned long* to float* fails in -O2 builds.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2005 12:35:13 -0000
- Subject: [Bug c/23421] unsigned long to float conversion by casting unsigned long* to float* fails in -O2 builds.
- References: <20050816122850.23421.gino@dtecta.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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