[flang-commits] [flang] [llvm] [Flang][OpenMP] Add semantic checks for Worshare construct (PR #111358)

Thirumalai Shaktivel via flang-commits flang-commits at lists.llvm.org
Tue Oct 8 04:25:22 PDT 2024


================
@@ -61,6 +69,16 @@ subroutine workshare(aa, bb, cc, dd, ee, ff, n)
   j = j - my_func()
   !$omp end atomic
 
+  !ERROR: User defined IMPURE non-ELEMENTAL function 'impure_my_func' is not allowed in a WORKSHARE construct
----------------
Thirumalai-Shaktivel wrote:

Between the `IMPURE` and `non-ElEMENTAL`?
```
User defined IMPURE, non-ELEMENTAL function
```

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


More information about the flang-commits mailing list