view gcc/testsuite/gfortran.dg/dependency_1.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

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