[Bug c++/27412] Incorrect result with sse intrinsic while extracting int

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed May 3 23:28:00 GMT 2006



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-05-03 23:27 -------
You are violating C aliasing rules, use an union (which is non standard) or
memcpy.
  int res = ((int*)&ix)[1];

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


-- 

pinskia at gcc dot gnu dot org changed:

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


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



More information about the Gcc-bugs mailing list