https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102932
--- Comment #3 from Rajpal Singh <rajpal.gusain at gmail dot com> --- (In reply to Tee KOBAYASHI from comment #1) > Signed integer overflow. You can use -fwrapv. Thanks ! Yes, it's signed integer overflow, is there any way to catch it statically at compile time ?