[Flang][OpenMP] verification of lowering to FIR failed on OpenMP task depend with array section of derived-type component
Open
flang:ir
flang:openmp
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Reproducer:
https://godbolt.org/z/c6b385co9
```f90
integer :: a(2) = (/0,1/)
type t
integer :: b(2)
end type
type(t) :: s(2)
!$omp task depend(out: s(a)%b(1))
!$omp end task
end
```
The expected behavior is that the code either compiles successfully or produces an appropriate and informative diagnostic.
Contributor guide
Research direction
Start with the Fortran reproducer in the issue and the linked Compiler Explorer example at https://godbolt.org/z/c6b385co. Investigate the OpenMP task-depend lowering to FIR for an array section of a derived-type component. Done means the example compiles successfully or emits an appropriate, informative diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fortran
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100