Debian Codegraph @

gcc/testsuite/gfortran.dg/do_check_18.f90

raw
1 ! { dg-do compile }
2 ! PR103718,
3 ! PR103719 - ICE in doloop_contained_procedure_code
4 ! Contributed by G.Steinmetz
5
6 subroutine s1
7 integer :: i
8 do i = 1, 2
9 call s
10 end do
11 contains
12 subroutine s
13 integer :: n
14 inquire (iolength=n) 0 ! valid
15 end
16 end
17
18 subroutine s2
19 integer :: i
20 do i = 1, 2
21 call s
22 end do
23 contains
24 subroutine s
25 shape(1) = 0 ! { dg-error "Non-variable expression" }
26 end
27 end