summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dependency_1.f90
blob: 5a5a898822d7700a1947b4638718f2a67b4bf824 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
! PR23906
! Dependency analysis was using the stride from the wrong expression and
! segfaulting
subroutine foo(a)
  real, dimension(:) :: a

  a(1:3:2) = a(1:2) 
  a(1:2) = a(1:3:2) 
end subroutine