[Bug c++/99162] problem when compile with O2 or O3
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 19 13:28:47 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99162
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Signed integer overflow is undefined behavior. Abs of most negative signed
integer is undefined because there is no way to represent the positive value so
it causes an overflow.
More information about the Gcc-bugs
mailing list