diff --git a/include/fmt/format.h b/include/fmt/format.h index 5289e2e5..f7d7efb0 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -369,7 +369,7 @@ template inline T* make_checked(T* p, size_t) { return p; } #endif template ::value)> -#if FMT_CLANG_VERSION >= 307 +#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION __attribute__((no_sanitize("undefined"))) #endif inline checked_ptr