view gcc/testsuite/gfortran.dg/pr49698.f90 @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
line wrap: on
line source

! PR fortran/49698
! { dg-do compile }
subroutine foo (x, y, z)
  type S
    integer, pointer :: e => null()
  end type S
  type T
    type(S), dimension(:), allocatable :: a
  end type T
  type(T) :: x, y
  integer :: z, i
  forall (i = 1 : z)
    y%a(i)%e => x%a(i)%e
  end forall
end subroutine foo