! (such as an element of a structure) but is not an array element or
! an array section cannot appear in a DEPEND clause
subroutinevec_mult(N)
implicitnone
integer::i,N
real,allocatable::p(:),v1(:),v2(:)
typemy_type
integer::a(10)
endtypemy_type
type(my_type)::my_var
allocate(p(N),v1(N),v2(N))
!$omp parallel num_threads(2)
!$omp single
!$omp task depend(out:v1)
callinit(v1,N)
!$omp end task
!$omp task depend(out:v2)
callinit(v2,N)
!$omp end task
!ERROR: A variable that is part of another variable (such as an element of a structure) but is not an array element or an array section cannot appear in a DEPEND clause