Skip to content

Commit 172d717

Browse files
committed
Modify handling of SYCL special types to account for default constructor access specifier
1 parent f551ba4 commit 172d717

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/include/sycl/ext/oneapi/experimental/work_group_memory.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(work_group_memory) work_group_memory
4949
using decoratedPtr = typename sycl::detail::DecoratedType<
5050
value_type, access::address_space::local_space>::type *;
5151

52-
public:
5352
// Frontend requires special types to have a default constructor in device
5453
// compilation mode in order to have a uniform way of initializing an object of
5554
// special type to then call the __init method on it. This is purely an
5655
// implementation detail and not part of the spec.
5756
#ifdef __SYCL_DEVICE_ONLY__
5857
work_group_memory() = default;
5958
#endif
59+
60+
public:
6061
work_group_memory(const indeterminate_t &) {};
6162
work_group_memory(const work_group_memory &rhs) = default;
6263
work_group_memory &operator=(const work_group_memory &rhs) = default;

0 commit comments

Comments
 (0)