https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83407
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonny Grant from comment #5) > printf("vec size minus header: %zu", vec.size() -1); Even if there was a warning about unsigned wraparound (N.B. not "underflow" which means something different, and not "overflow" which can only happen with signed integers) ... how can the compiler warn about that, when vec.size() isn't known?