view gcc/testsuite/gfortran.dg/pr49698.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +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