[flang-commits] [flang] Skip POINTER components in implicit mapper generation (PR #177848)
Jakob Fuchs via flang-commits
flang-commits at lists.llvm.org
Thu Jul 30 06:12:04 PDT 2026
jfuchs-kmt wrote:
> Please verify if: #197885 solved the problem, it landed a while back and tries to address some of these cases, if it doesn't please rebase the PR and tag me as reviewer and/or @TIFitis and drop a ping here (at least for me :-) ), that's likely the best way to progress anything map related for Flang as we both tend to be the ones that get around to reviewing these.
>
> P.S. Thank you for reviewing it @Ritanya-B-Bharadwaj and thank you for the PR @devalgupta404
It has been a long time since I looked at this, but this example:
```
PROGRAM main
IMPLICIT NONE
TYPE :: dt
REAL, POINTER :: p(:)
END TYPE dt
TYPE(dt) :: xdt
REAL, TARGET :: t(10)
xdt%p => t(:)
!$omp target map(xdt)
PRINT*, ASSOCIATED(xdt%p)
!$omp end target
END PROGRAM main
```
outputs `T` for `ASSOCIATED(xdt%p)`, which was the original example I tried to replicate in https://github.com/llvm/llvm-project/issues/176956. This result goes against what is mentioned in https://www.openmp.org/wp-content/uploads/OMP-Users-Monthly-Telecon-20211210.pdf on page 15. That would mean it is not fixed yet. I am running on a flang build from today on an NVIDIA gpu.
https://github.com/llvm/llvm-project/pull/177848
More information about the flang-commits
mailing list