我无法理解这两个函数是如何产生歧义的。如果类型更改为整数或实数,编译器不会标记任何歧义。
Function split_to_str_unidim &
( &
a, delim, mold, &
pos &
) &
Result (bn)
Character (len=*), Intent (in) :: a, delim, mold
Character (len=*), Intent (in), Optional :: pos
Character (len=65), Allocatable :: bn(:)
End Function
Function split_to_str &
( &
a, delim, b1, b2, &
b3, b4, b5, b6, b7, b8, &
pos &
) &
Result (b)
Character (len=*), Intent (in) :: a, delim
Character (len=*), Intent (in), Optional :: pos
Character (len=*), Intent (out) :: b1, b2
Character (len=*), Intent (out), Optional :: b3, b4, b5, b6, b7, b8
Logical :: b
End Function