rt_gccstream/gcc/testsuite/gfortran.dg/dependency_1.f90

12 lines
220 B
Fortran

! { 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