[flang-commits] [flang] [flang] Check for inappropriate symbols in ACC PRESENT (PR #169500)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Tue Nov 25 06:56:03 PST 2025
eugeneepshteyn wrote:
@clementval , I saw the issue and thought maybe it could be a quick fix. With this draft change, the output is as follows:
```
$ flang -c acc-declare-present.f90 -fopenacc
error: Semantic errors in acc-declare-present.f90
./acc-declare-present.f90:5:19: error: 'm' is not an appropriate symbol for PRESENT clause
!$acc declare present(m)
^^^^^^^^^^
./acc-declare-present.f90:5:27: error: No explicit type declared for 'm'
!$acc declare present(m)
^
```
Please let me know if this is reasonable and I'll add a test and continue with this PR.
https://github.com/llvm/llvm-project/pull/169500
More information about the flang-commits
mailing list