Skip to content

Commit 3b2a52e

Browse files
Unblock RWC by extending the static call operator workaround (#5312)
Co-authored-by: David Justo <[email protected]>
1 parent 25cfafb commit 3b2a52e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stl/inc/yvals_core.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,9 @@ compiler option, or define _ALLOW_RTCc_IN_STL to suppress this error.
20142014
#define _STL_INTERNAL_STATIC_ASSERT(...)
20152015
#endif // ^^^ !defined(_ENABLE_STL_INTERNAL_CHECK) ^^^
20162016

2017-
#ifdef __CUDACC__ // TRANSITION, CUDA 12.4 doesn't have downlevel support for static call operators
2017+
#if defined(__CUDACC__) || (defined(__clang__) && __clang_major__ < 16)
2018+
// TRANSITION, CUDA 12.4 doesn't have downlevel support for static call operators.
2019+
// TRANSITION, VSO-2397560, temporary workaround for Real World Code relying on ancient Clang versions.
20182020
#define _STATIC_CALL_OPERATOR
20192021
#define _CONST_CALL_OPERATOR const
20202022
#define _STATIC_LAMBDA

0 commit comments

Comments
 (0)