diff --git a/sycl/include/sycl/ext/oneapi/device_global/device_global.hpp b/sycl/include/sycl/ext/oneapi/device_global/device_global.hpp index 0e74036f4012c..ecf8c970e2214 100644 --- a/sycl/include/sycl/ext/oneapi/device_global/device_global.hpp +++ b/sycl/include/sycl/ext/oneapi/device_global/device_global.hpp @@ -83,7 +83,7 @@ class device_global_base { #ifndef __SYCL_DEVICE_ONLY__ template - static constexpr const T & + static constexpr const OtherT & ExtractInitialVal(const device_global_base &Other) { if constexpr (OtherProps::template has_property()) return Other.val;