From 06c5e5929ce5800bf16b3fb8caf3f06a2062c5b6 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Thu, 20 Feb 2025 16:32:24 -0800 Subject: [PATCH] do not try to use clang-19's support for c++26 pack indexing clang claims to support pack indexing by defining `__cpp_pack_indexing`, but then it fails to parse pack indexing expressions. --- libcudacxx/include/cuda/std/__type_traits/type_list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcudacxx/include/cuda/std/__type_traits/type_list.h b/libcudacxx/include/cuda/std/__type_traits/type_list.h index 44e9a4d79bc..6ec295ab7a3 100644 --- a/libcudacxx/include/cuda/std/__type_traits/type_list.h +++ b/libcudacxx/include/cuda/std/__type_traits/type_list.h @@ -430,7 +430,7 @@ struct _CCCL_TYPE_VISIBILITY_DEFAULT __type_try_catch }; // Implementation for indexing into a list of types: -# if defined(__cpp_pack_indexing) && !_CCCL_CUDA_COMPILER(NVCC) +# if defined(__cpp_pack_indexing) && !_CCCL_CUDA_COMPILER(NVCC) && !_CCCL_COMPILER(CLANG, <=, 19) _CCCL_DIAG_PUSH _CCCL_DIAG_SUPPRESS_CLANG("-Wc++26-extensions")