diff --git a/sycl/include/sycl/detail/common.hpp b/sycl/include/sycl/detail/common.hpp index 2a1c05de372bf..4d0b1aea245f1 100644 --- a/sycl/include/sycl/detail/common.hpp +++ b/sycl/include/sycl/detail/common.hpp @@ -104,10 +104,12 @@ struct code_location { #ifndef DISABLE_SYCL_INSTRUMENTATION_METADATA #define _CODELOCONLYPARAM(a) \ - const detail::code_location a = detail::code_location::current() + const ::sycl::detail::code_location a = \ + ::sycl::detail::code_location::current() #define _CODELOCPARAM(a) \ - , const detail::code_location a = detail::code_location::current() -#define _CODELOCPARAMDEF(a) , const detail::code_location a + , const ::sycl::detail::code_location a = \ + ::sycl::detail::code_location::current() +#define _CODELOCPARAMDEF(a) , const ::sycl::detail::code_location a #define _CODELOCARG(a) #define _CODELOCFW(a) , a @@ -115,7 +117,7 @@ struct code_location { #define _CODELOCONLYPARAM(a) #define _CODELOCPARAM(a) -#define _CODELOCARG(a) const detail::code_location a = {} +#define _CODELOCARG(a) const ::sycl::detail::code_location a = {} #define _CODELOCFW(a) #endif