3 ! Array constructor with an array element whose value is a
4 ! character function that is described in an interface block and which
5 ! has an assumed-length result
9 function UpperCase(string
) result(upper
)
10 character(*), intent(IN
) :: string
11 character(LEN(string
)) :: upper
13 function f2(string
) result(upper
)
14 character(*), intent(IN
) :: string
21 character(5), dimension(1) :: ca
22 ca
= (/f2(c
)/) ! This compiles
23 ca
= (/Uppercase(c
)/) ! This gets an ICE