https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67279
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Manuel López-Ibáñez from comment #4) > A possible solution could be to give a warning enabled by default (about 1 > << 31 being undefined) and to NOT sanitize expressions that are required to > be constants (since anyway the compiler will not accept them). Indeed, Clang doesn't instrument static initializers. This is a bug on the C/C++ FEs instrumentation. I wonder what happens with global static and static const? They do not seem to be instrumented by the sanitizer.