Skip to content

Commit eca9cad

Browse files
committed
Make post-modification ctor undefined behavior
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 376185b commit eca9cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_device_global.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Available if `PropertyListT::has_property<device_image_scope_key>() == false` an
348348

349349
Constructs a `device_global` object, and implicit storage for `T` in the global address space on each device that may access it.
350350

351-
The storage on each device for `T` is initialized with a copy of the storage in `other`.
351+
The storage on each device for `T` is initialized with a copy of the initial value of `other`. The behavior is undefined if `other` has been written to prior to a call this constructor.
352352

353353
// --- ROW BREAK ---
354354
a|

0 commit comments

Comments
 (0)