If a "TASK DEPEND" clause is not given a valid task dependece type modifier, the semantic checks for the clause will result in an ICE because they assume that such modifiers will be present. Check whether the modifiers are present and show an appropriate error instead of crashing the compiler if they are not. Fixes llvm#133678. Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>
9 lines
195 B
Fortran
9 lines
195 B
Fortran
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
|
|
|
|
program test
|
|
! ERROR: A DEPEND clause on a TASK construct must have a valid task dependence type
|
|
!$omp task depend(ii)
|
|
!$omp end task
|
|
end
|
|
|