https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #11) > https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#silencing- > unsigned-integer-overflow Of course those suppressions don't actually work - thanks, Clang. Add a broken diagnostic that incorrectly labels "arguably questionable but actually well-defined" code as "undefined" and then make it un-suppressable. (size_t)-1 does work though (even though that doesn't change the meaning of the code at all).