https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96317
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Or you can use UBSAN to see that: $ gcc pr96317.c -fsanitize=undefined && ./a.out pr96317.c:7:9: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' 111 pr96317.c:18:9: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' 333