[Bug c++/20053] casting pointers to arrays in c++ produces wrong output when optimizing

falk at debian dot org gcc-bugzilla@gcc.gnu.org
Fri Feb 18 18:45:00 GMT 2005


------- Additional Comments From falk at debian dot org  2005-02-18 12:38 -------
This code is invalid; you're accessing an object of type uint64_t via a pointer
to uint32_t, which is not allowed. Use -fno-strict-aliasing, or use a union.


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


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



More information about the Gcc-bugs mailing list