[flang-commits] [flang] [flang][OpenMP] Implement copyin for pointers and allocatables. (PR #107425)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Fri Sep 6 05:55:06 PDT 2024


luporl wrote:

Looks good, but you also need to add that `|| flags.test(Fortran::semantics::Symbol::Flag::OmpCopyIn)` in `Bridge.cpp`, to handle the copy of unallocated variables. WIthout it the test program below crashes.

```f90
program main
  integer, allocatable, save :: a
  !$omp threadprivate(a)

  !$omp parallel copyin(a)
    a = 1
  !$omp end parallel
end program
```

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


More information about the flang-commits mailing list