comparison gcc/testsuite/gfortran.dg/restricted_expression_1.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 ! { dg-do compile }
2 ! { dg-options "-pedantic -ffixed-form" }
3
4 ! PR fortran/35723
5 ! An argument subscript into a parameter array was not allowed as
6 ! dimension. Check this is fixed.
7
8 ! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com>
9
10 call vf0016( 1, 2, 3)
11
12 end
13 SUBROUTINE VF0016(nf1,nf2,nf3)
14 CHARACTER(LEN=9,KIND=1),DIMENSION(3), PARAMETER
15 $ :: TEST_STRINGS =
16 $ (/' HI','ABC ',' CDEFG '/)
17 CHARACTER :: TEST_ARRAY
18 $(LEN_TRIM(ADJUSTL(TEST_STRINGS(nf1))),
19 $ SUM(LEN_TRIM(ADJUSTL(TEST_STRINGS))),
20 $ LEN_TRIM(ADJUSTL(ADJUSTR(TEST_STRINGS(3)))),
21 $ SUM(LEN_TRIM(ADJUSTL(ADJUSTR(TEST_STRINGS(NF1:NF3:NF2))))) )
22
23 print *, 2, 10, 5, 7
24 print *, shape (test_array)
25 end