Debian Codegraph @

gcc/testsuite/gfortran.dg/pr108501.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/108501 - ICE in get_expr_storage_size
3 ! Contributed by G.Steinmetz
4
5 program p
6 real, parameter :: n = 2
7 real :: a(1,(n),2) ! { dg-error "must be of INTEGER type" }
8 call s(a(:,:,1))
9 end
10 subroutine s(x)
11 real :: x(2)
12 end
13
14 ! { dg-prune-output "must have constant shape" }