https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97641
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Use -fsanitize=undefined to get it diagnosed at runtime. Although, that routine doesn't handle even Parse1("2147483631\x01") etc. correctly. Just use unsigned int result = 0;