Skip to content

[flang][OpenMP] refine semantic checks for atomic #140737

Closed
@tblah

Description

@tblah
module m1
integer::n=2
type w
integer x(2,2,2),v,e
end type
type(w)::g
contains
subroutine s1
!$omp atomic capture
g%x(n,n,n)=g%x(n,n,n)+f(g%e)
g%v=g%x(n,n,n)
!$omp end atomic
end subroutine
end module

This is from the deleted Fujitsu test 0455_0029.

Currently flang doesn't like that g%e is used on the rhs of g%x(n,n,n)=g%x(n,n,n)+f(g%e). But as a different component of the derived type and non-overlapping with g%x I believe this is valid.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions