Skip to content

Commit 10d207e

Browse files
committed
Add UB to readded ctor
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent a9b3acd commit 10d207e

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
@@ -346,7 +346,7 @@ Available if `PropertyListT::has_property<device_image_scope_key>() == false`.
346346

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

349-
The storage on each device for `T` is initialized with a copy of the storage in `other`.
349+
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.
350350

351351
// --- ROW BREAK ---
352352
a|

0 commit comments

Comments
 (0)