https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106542
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> --- The code is undefined and can be detected with -fsanitize=undefined: /app/example.cpp:15:14: runtime error: signed integer overflow: 2086724600 - -1610499096 cannot be represented in type 'int'