https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91254
--- Comment #2 from Alexandre Bencz <alebencz at gmail dot com> --- same problem, with -fwrapv, the program still stucked... and, for a test, I tried to use the -fsanitize=undefined and the program still stucked...