[Bug c++/38855] evaluation of reinterpret_cast with -O2
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 15 14:38:00 GMT 2009
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-01-15 14:37 -------
It is not. You are violating C++ aliasing rules. Use memcpy or a union.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38855
More information about the Gcc-bugs
mailing list