Skip to content

Commit 4612880

Browse files
authored
Small fix to example in device global spec (#6621)
This example demonstrates an illegal construct with `device_global`, in order to illustrate a limitation. However, the example inadvertently had a C++ syntax error also. Fix that error.
1 parent 5930429 commit 4612880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_device_global.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ namespace {
474474
inline namespace other {
475475
device_global<int> same_name; // ILLEGAL: shadows "device_global" variable
476476
} // with same name in enclosing namespace scope
477-
inline namespace {
477+
inline namespace other2 {
478478
namespace foo { // ILLEGAL: namespace name shadows "::foo"
479479
} // namespace which contains "device_global"
480480
// variable.

0 commit comments

Comments
 (0)