[Bug c/17665] wrong code with -O2
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 25 18:09:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-25 18:09 -------
No read the standard again
What it says is that only char can aliasing anything and nothing else.
since you access it via both char* and void* that is what violates the aliasing rules.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17665
More information about the Gcc-bugs
mailing list