[Bug tree-optimization/37867] inconsistent results on -O2 when reading bits from packed struct
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 18 14:06:00 GMT 2008
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-10-18 14:05 -------
You invoke undefined behavior by accessing parts of a and b via
*(1+(uint64_t *) &x). This access is not valid because of C aliasing rules.
--
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=37867
More information about the Gcc-bugs
mailing list