https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > Due to an integer overflow Hmm, I don't think this is an integer overflow but rather due to wrapping. Yes there is a difference as overflow is undefined behavior while wrapping is defined.