view gcc/testsuite/gfortran.dg/dependency_1.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +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