[Bug c/78891] Array out of bound access generates wrong code in O2 or higher optimizations
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 21 19:02:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78891
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
((*(array+index) == 0x0) && (index < 16))
This is undefined code. You should swap around the two operands to the short
cutting boolean and to have defined code.
More information about the Gcc-bugs
mailing list