From 3b2a52e0940dd1b8e13734487daa5f8b56ea01ef Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Mon, 24 Feb 2025 16:14:37 -0800 Subject: [PATCH] Unblock RWC by extending the static call operator workaround (#5312) Co-authored-by: David Justo --- stl/inc/yvals_core.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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