[Bug c++/49751] Incorrect optimization related to smallest int64_t value.
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 14 20:17:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49751
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-14 20:17:23 UTC ---
if (a < 0)
{
a = -a;
}
-INT_MIN invokes undefined behavior as signed integer overflow is undefined.
More information about the Gcc-bugs
mailing list