[flang][doc] Added remark about array element references in data clauses. (#72332)

This commit is contained in:
Slava Zakharin 2023-11-20 18:01:38 -08:00 committed by GitHub
parent 26dc765088
commit 0d77978e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,3 +25,10 @@ local:
logical expression.
* `!$acc routine` directive can be placed at the top level.
* `!$acc cache` directive accepts scalar variable.
## Remarks about incompatibilities with other implementations
* Array element references in the data clauses are equivalent to array sections
consisting of this single element, i.e. `copyin(a(n))` is equivalent to
`copyin(a(n:n))`. Some other implementations have treated it as
`copyin(a(:n))`, which does not correspond to OpenACC spec Flang does not
support this interpretation of an array element reference.