https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84863
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #1) > Never use -Werror with -fsanitize=*, those really do cause new warnings > because the code intentionally is less optimized and the runtime check > themselves prevent further optimizations, so warnings that depend on > optimizations can't work properly. Maybe gcc should explicitly forbid the 2 of them being combined and error out in the option-handling part of the driver instead.