diff --git a/sycl/include/sycl/detail/common.hpp b/sycl/include/sycl/detail/common.hpp index 189f2a46d207e..4c6e0bdb2a052 100644 --- a/sycl/include/sycl/detail/common.hpp +++ b/sycl/include/sycl/detail/common.hpp @@ -57,7 +57,7 @@ size_t getLinearIndex(const T &Index, const U &Range) { // or ranges classes. When extending the new values are filled with // DefaultValue, truncation just removes extra values. template class T, int OldDim> -static T convertToArrayOfN(T OldObj) { +T convertToArrayOfN(T OldObj) { T NewObj = detail::InitializedVal::template get<0>(); const int CopyDims = NewDim > OldDim ? OldDim : NewDim; for (int I = 0; I < CopyDims; ++I)