Skip to content

Commit ada514b

Browse files
authored
[flang][acc][NFC] Add deviation to the spec that declaring the same variable is permitted (#148288)
OpenACC spec says `A var may appear at most once in all the clauses of declare directives for a function, subroutine, program, or module.` but our implementation allows it with a warning generated. Add this to the diviation list for record.
1 parent 19b2dd9 commit ada514b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/docs/OpenACC.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ local:
2727
* `!$acc cache` directive accepts scalar variable.
2828
* The `!$acc declare` directive accepts assumed size array arguments for
2929
`deviceptr` and `present` clauses.
30+
* The OpenACC specification disallows a variable appearing multiple times in
31+
clauses of `!$acc declare` directives for a function, subroutine, program,
32+
or module, but it is allowed with a warning when same clause is used.
3033

3134
## Remarks about incompatibilities with other implementations
3235
* Array element references in the data clauses are equivalent to array sections

0 commit comments

Comments
 (0)