Skip to content

[flang][OpenMP] Diagnose invalid reduction modifiers #92397

Closed
@kparzysz

Description

@kparzysz

Currently the flang frontend will accept the following code. The task modifier on the reduction clause is only valid for certain constructs, and simd is not one of them.

subroutine fred(x)
  integer, intent(inout) :: x

  !$omp simd reduction(task, +:x)
  do i = 1, 100
    x = foo(i)
  enddo
  !$omp end simd
end

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions