[flang-commits] [flang] [flang][OpenMP] Diagnose non-variable symbols in OpenMP clauses (PR #111394)
Raghu Maddhipatla via flang-commits
flang-commits at lists.llvm.org
Tue Oct 8 09:56:23 PDT 2024
================
@@ -0,0 +1,24 @@
+!RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
+module m
+
+contains
+
+subroutine foo1()
+ integer :: baz1
+!ERROR: 'baz1' must be a variable
+!$omp parallel do shared(baz1)
+ baz1: do i = 1, 100
+ enddo baz1
+!$omp end parallel do
+end subroutine
+
+subroutine foo2()
+ !implicit baz2
----------------
raghavendhra wrote:
Nit : If you are not planning to use this commented implicit can you please remove it?
https://github.com/llvm/llvm-project/pull/111394
More information about the flang-commits
mailing list