https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542
--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Niklas Hambüchen from comment #15) > Another common integer overflow bug type is the "for (u32 i = 0; i < u64; > ++i)" pattern, as well as general widening comparisons. > > I filed bug 110933 for those; just linking it here for people interested in > integer overflows. There is no integer overflow here rather there has been wrapping happening. Yes there is a huge difference between the two. Wrapping is defined behavior while overflow is undefined behavior.