https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91373
--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> --- Note that gcc (like clang) provides a tool to help you detect this kind of issue. If you compile with -fsanitize=undefined, then at runtime you will see: main.c:7:20: runtime error: signed integer overflow: 63139 * 36032 cannot be represented in type 'int'