[Bug c++/27533] wrong result after reinterpret_cast from float* to int*

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed May 10 14:59:00 GMT 2006



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-05-10 14:59 -------
As Pawel already pointed out:
Your code is brokan as you are violating the aliasing rules.

Please read about this in the non-bug section of http://gcc.gnu.org/bugs.html :
"Casting does not work as expected when optimization is turned on."


*** This bug has been marked as a duplicate of 21920 ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27533



More information about the Gcc-bugs mailing list