[flang-commits] [flang] [flang][OpenACC] Reland data-clause designator path handling (PR #220781)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Tue Sep 8 06:15:34 PDT 2026


eugeneepshteyn wrote:

Question: what should happen here?
```fortran
subroutine whole_then_part(a)
  real :: a(10)
  !$acc parallel private(a) private(a(1:5))
  a(9) = 1.0
  !$acc end parallel
end subroutine
```
Here `a(1:5)` is a proper subset of `a`, so I think this should not be a hard error. The compiler should just map the whole `a` and should ignore the proper subset `a(1:5)` with the same `private`.

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


More information about the flang-commits mailing list