If you try the following code in 64bit
!ftn95$free
subroutine test_len(i, j)
integer k
k = i+j
end
program test
CHARACTER*18 :: PRF(3)=['Direct proof ', 'Intermediate proof', &
'Indirect proof ']
i = 1
j = 2
call test_len(i,j)
call test_len(i,len(prf))
end
You get the following warning
WARNING - 189: In a previous call to TEST_LEN, the second argument was of type INTEGER(KIND=3), it is now INTEGER(KIND=4)
Surely LEN is always KIND=3 ?