view gcc/testsuite/gfortran.dg/pr46945.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/46945
! { dg-do run }
! { dg-options "-O -ftree-vrp -fno-tree-ccp -fno-tree-fre" }

program pr46945
  real, allocatable :: a(:,:,:)
  integer :: n
  n = 0
  allocate (a(n,n,n))
end program pr46945