1! { dg-do compile } 2! 3! PR 40822: [4.5 Regression] Internal compiler error when Fortran intrinsic LEN referenced before explicit declaration 4! 5! Contributed by Mat Cross <mathewc@nag.co.uk> 6 7SUBROUTINE SEARCH(ITEMVAL) 8 CHARACTER (*) :: ITEMVAL 9 CHARACTER (LEN(ITEMVAL)) :: ITEM 10 INTRINSIC LEN 11END 12 13