4 ! gfortran used to ICE with the call to `tostring' depending on how the
5 ! `tostring' symbol was USE-associated.
7 ! Contributed by Lorenz Hüdepohl <bugs@stellardeath.org>
11 pure function strlen(handle) result(len)
12 integer, intent(in) :: handle
17 module intermediate ! does not die if this module is merged with stringutils
19 function tostring(handle) result(string)
21 integer, intent(in) :: handle
22 character(len=strlen(handle)) :: string
27 subroutine dies_here(handle)
28 use stringutils ! does not die if this unnecessary line is omitted or placed after "use intermediate"
31 write(*,*) tostring(handle) ! ICE