@@ -227,7 +227,7 @@ local_accessor: public accessor<dataT,
227227 access::target::local> {
228228public:
229229#ifdef __SYCL_DEVICE_ONLY__
230- local_accessor () = default ;
230+ local_accessor () = default ;
231231#endif
232232 void use (void ) const {}
233233 template <typename ... T>
@@ -252,11 +252,13 @@ struct sampler_impl {
252252class __attribute__ ((sycl_special_class)) __SYCL_TYPE(sampler) sampler {
253253 struct sampler_impl impl;
254254#ifdef __SYCL_DEVICE_ONLY__
255- sampler () = default ;
256255 void __init (__ocl_sampler_t Sampler) { impl.m_Sampler = Sampler; }
257256#endif
258257
259258public:
259+ #ifdef __SYCL_DEVICE_ONLY__
260+ sampler () = default ;
261+ #endif
260262 void use (void ) const {}
261263};
262264
@@ -489,19 +491,21 @@ namespace experimental {
489491template <typename T, typename ... Props>
490492class __attribute__ ((sycl_special_class)) __SYCL_TYPE(annotated_arg) annotated_arg {
491493 T obj;
492- #ifdef __SYCL_DEVICE_ONLY__
493- annotated_arg () = default ;
494- void __init (T _obj) {}
495- #endif
494+ #ifdef __SYCL_DEVICE_ONLY__
495+ void __init (T _obj) {}
496+ public:
497+ annotated_arg () = default ;
498+ #endif
496499};
497500
498501template <typename T, typename ... Props>
499502class __attribute__ ((sycl_special_class)) __SYCL_TYPE(annotated_ptr) annotated_ptr {
500503 T* obj;
501- #ifdef __SYCL_DEVICE_ONLY__
502- annotated_ptr () = default ;
503- void __init (T* _obj) {}
504- #endif
504+ #ifdef __SYCL_DEVICE_ONLY__
505+ void __init (T* _obj) {}
506+ public:
507+ annotated_ptr () = default ;
508+ #endif
505509};
506510
507511} // namespace experimental
0 commit comments