This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20053] casting pointers to arrays in c++ produces wrong output when optimizing
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Feb 2005 12:38:39 -0000
- Subject: [Bug c++/20053] casting pointers to arrays in c++ produces wrong output when optimizing
- References: <20050218115240.20053.linuxadmin@yandex.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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