…lauses Currently we only do semantic checks for REDUCTION. There are two other clauses, IN_REDUCTION, and TASK_REDUCTION which will also need those checks. Implement a function that checks the common list-item requirements for all those clauses.
15 lines
346 B
Fortran
15 lines
346 B
Fortran
!RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp -fopenmp-version=50
|
|
|
|
!Ref: [5.0:298:19]
|
|
! A type parameter inquiry cannot appear in a reduction clause.
|
|
|
|
subroutine f00
|
|
integer :: x
|
|
!ERROR: Type parameter inquiry is not permitted in REDUCTION clause
|
|
!$omp do reduction (+ : x%kind)
|
|
do i = 1, 10
|
|
end do
|
|
!$omp end do
|
|
end subroutine
|
|
|