summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/char_length_16.f90
blob: 3ff14d2395b34e3d65a8fa2d5f4eecdc57eb877f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
!
! PR 40822: [4.5 Regression] Internal compiler error when Fortran intrinsic LEN referenced before explicit declaration
!
! Contributed by Mat Cross <mathewc@nag.co.uk>

SUBROUTINE SEARCH(ITEMVAL)
  CHARACTER (*) :: ITEMVAL
  CHARACTER (LEN(ITEMVAL)) :: ITEM
  INTRINSIC LEN
END