https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108674
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think this is a bug in clang in the first place for enabling unsigned-integer-overflow at all. I would file a bug with clang to disable unsigned-integer-overflow by default when using -fsanitize=undefined . GCC has already decided to never implement unsigned-integer-overflow even because of how broken this is.