[Bug tree-optimization/34169] Bad code generated with -O2
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Nov 21 00:18:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-11-21 00:18 -------
++*(int **)&a1;
++*(int **)&a2;
you are accessing a void* as an int* which violates C/C++ aliasing rules so you
are invoking undefined behavior.
*** This bug has been marked as a duplicate of 21920 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34169
More information about the Gcc-bugs
mailing list