2 ! PR fortran/107819 - ICE in gfc_check_argument_var_dependency
3 ! Contributed by G.Steinmetz
5 ! Note: the testcase is considered non-conforming for m>1 due to aliasing
9 integer, parameter :: m
= 1
11 integer :: a(m
) = [(-i
,i
=1,m
)]
12 integer :: n(m
) = [(i
,i
=m
,1,-1)]
15 call s (a(n
), a
) ! { dg-warning "might interfere with actual argument" }
17 ! Compare to separate application of subroutine in element order
19 call s (b(n(i
)), b(i
))
21 if (any (a
/= b
)) stop 1
23 elemental
subroutine s (x
, y
)
25 integer, intent(out
) :: y