1 2 3 4 5 6 7 8 9 10
! PR fortran/44536 ! { dg-do compile } ! { dg-options "-fopenmp" } subroutine foo (a, i, j) integer, dimension(:) :: a integer :: i, j !$omp parallel default(none) shared(i, j) ! { dg-error "enclosing parallel" } j=a(i) ! { dg-error "not specified in" } !$omp end parallel end subroutine