| 1 |
! { dg-do compile } |
| 2 |
! |
| 3 |
! PR fortran/105381 |
| 4 |
! Infinite recursion with array references of character dummy arguments. |
| 5 |
! |
| 6 |
! Contributed by Harald Anlauf <[email protected]> |
| 7 |
|
| 8 |
MODULE m |
| 9 |
implicit none |
| 10 |
integer, parameter :: ncrit = 8 |
| 11 |
integer, parameter :: nterm = 7 |
| 12 |
contains |
| 13 |
|
| 14 |
subroutine new_thin_rule (rule1) |
| 15 |
character(*),intent(in) ,optional :: rule1(ncrit) |
| 16 |
character(len=8) :: rules (ncrit,nterm) |
| 17 |
rules = '' |
| 18 |
if (present (rule1)) rules(:,1) = rule1 ! <-- compile time hog |
| 19 |
end subroutine new_thin_rule |
| 20 |
|
| 21 |
end module m |