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.