case OMP_LIST_MULT:
case OMP_LIST_SUB:
if (!gfc_numeric_ts (&n->sym->ts))
- gfc_error ("%c REDUCTION variable '%s' at %L must be of intrinsic type, got %s",
+ gfc_error ("%c REDUCTION variable '%s' at %L must be of numeric type, got %s",
list == OMP_LIST_PLUS ? '+'
: list == OMP_LIST_MULT ? '*' : '-',
n->sym->name, &code->loc,
!$omp end parallel
!$omp parallel reduction (*:ia1) ! { dg-error "Assumed size" }
!$omp end parallel
-!$omp parallel reduction (+:l1) ! { dg-error "is LOGICAL" }
+!$omp parallel reduction (+:l1) ! { dg-error "must be of numeric type, got LOGICAL" }
!$omp end parallel
-!$omp parallel reduction (*:la1) ! { dg-error "is LOGICAL" }
+!$omp parallel reduction (*:la1) ! { dg-error "must be of numeric type, got LOGICAL" }
!$omp end parallel
-!$omp parallel reduction (-:a1) ! { dg-error "is CHARACTER" }
+!$omp parallel reduction (-:a1) ! { dg-error "must be of numeric type, got CHARACTER" }
!$omp end parallel
-!$omp parallel reduction (+:t1) ! { dg-error "is TYPE" }
+!$omp parallel reduction (+:t1) ! { dg-error "must be of numeric type, got TYPE" }
!$omp end parallel
-!$omp parallel reduction (*:ta1) ! { dg-error "is TYPE" }
+!$omp parallel reduction (*:ta1) ! { dg-error "must be of numeric type, got TYPE" }
!$omp end parallel
!$omp parallel reduction (.and.:i3) ! { dg-error "must be LOGICAL" }
!$omp end parallel