diff --git a/sycl/include/sycl/detail/vector_arith.hpp b/sycl/include/sycl/detail/vector_arith.hpp index aad90aa833791..0b24c71454984 100644 --- a/sycl/include/sycl/detail/vector_arith.hpp +++ b/sycl/include/sycl/detail/vector_arith.hpp @@ -265,7 +265,8 @@ template struct VecOperators { // ensure we generate 0/1 only (and not 2/-1/etc.). #if __clang_major__ >= 20 // Not an integral constant expression prior to clang-20. - static_assert((ext_vector{1, 0} == 0)[1] == -1); + static_assert( + static_cast((ext_vector{1, 0} == 0)[1]) == -1); #endif tmp = reinterpret_cast((tmp != 0) * -1);