[flang-commits] [flang] [flang] Improve OpenACC SELF clause parser (PR #135883)

Erich Keane via flang-commits flang-commits at lists.llvm.org
Tue Apr 15 18:06:48 PDT 2025


================
@@ -0,0 +1,12 @@
+! RUN: %python %S/../test_errors.py %s %flang -fopenacc
+integer function square(x)
+    implicit none
+    integer, intent(in) :: x
+!ERROR: logical expression or object list expected
+    !$acc parallel self(,)
+    !$acc end parallel
+!ERROR: logical expression or object list expected
----------------
erichkeane wrote:

Do you have a test that `!$acc parallel self(object-list)` would cause a diagnostic? (as `self` only takes an object list when used on an `update` construct).



https://github.com/llvm/llvm-project/pull/135883


More information about the flang-commits mailing list