diff --git a/stl/inc/yvals_core.h b/stl/inc/yvals_core.h index 1abaf85d26..3525693fa2 100644 --- a/stl/inc/yvals_core.h +++ b/stl/inc/yvals_core.h @@ -2014,7 +2014,9 @@ compiler option, or define _ALLOW_RTCc_IN_STL to suppress this error. #define _STL_INTERNAL_STATIC_ASSERT(...) #endif // ^^^ !defined(_ENABLE_STL_INTERNAL_CHECK) ^^^ -#ifdef __CUDACC__ // TRANSITION, CUDA 12.4 doesn't have downlevel support for static call operators +#if defined(__CUDACC__) || (defined(__clang__) && __clang_major__ < 16) +// TRANSITION, CUDA 12.4 doesn't have downlevel support for static call operators. +// TRANSITION, VSO-2397560, temporary workaround for Real World Code relying on ancient Clang versions. #define _STATIC_CALL_OPERATOR #define _CONST_CALL_OPERATOR const #define _STATIC_LAMBDA