[flang-commits] [flang] [Flang][OpenMP] Data-sharing restrictions on assumed-size arrays (PR #189324)

Jack Styles via flang-commits flang-commits at lists.llvm.org
Tue Mar 31 06:20:22 PDT 2026


================
@@ -0,0 +1,48 @@
+!RUN: %python %S/../test_errors.py %s %flang -fopenmp
+
+! Assumed-size arrays are predetermined shared and may only appear in a SHARED clause
+subroutine test_assumed_size_array_dsa( arr, N )
+  implicit none
+  integer :: arr(*)
+  integer :: i, N
+
+  !$omp parallel
+
+  !$omp task shared(arr)
----------------
Stylie777 wrote:

Apologies I missed something while testing this and see that diagnostic now. @phi-bee Regarding `REDUCTION` I am happy 😄 

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


More information about the flang-commits mailing list