Skip to content

[Flang][OpenMP] verification of lowering to FIR failed on omp atomic capture with derived type array element #161934

@k-arrows

Description

@k-arrows

Reproducer:
https://godbolt.org/z/sWPvEbWqW

type t1
  integer :: i(1)
end type

type(t1) :: t2
t2%i=0
j=1

!$omp atomic capture
t2%i(j*1) = t2%i(1) + 1
t2%i(1) = t2%i(j*1)
!$omp end atomic
end

The expected behavior is that the code either compiles successfully or produces an appropriate and informative diagnostic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions