Re: Proper way to return a string



Beliavsky wrote:
...
g95 says

In file string_func.f90:10

function str_func(aa) result(bb)
1
Error: Internal function 'str_func' at (1) cannot be an assumed-length
CHARACTER

That looks like a g95 bug. The code you posted is legal.

Walt
.



Relevant Pages

  • Re: Proper way to return a string
    ... Internal function 'str_func' at cannot be an assumed-length ... CHARACTER ... That looks like a g95 bug. ...
    (comp.lang.fortran)
  • Re: sloppy-char flag strangeness
    ... If I compile using an old version of g95, ... writes integer data with an "A" edit descriptor in an f66 Hollerith ... surprised it that same switch also allowed character data to be compared ... sending a "bug" report to Andy. ...
    (comp.lang.fortran)
  • Re: g77/f77 flags to get rid of "Type disagreement" and "Invalid specifier in FORMAT" for ancient fo
    ... I'm now using g95, and it seems able to get rid ... Because the type of actb is not ... it is not a character. ... > Intel compiler might support this stuff, ...
    (comp.lang.fortran)
  • g95: reading more data than the record size (RECL)
    ... I am trying to recompile some old .for code with g95. ... but I need to make the arrays larger. ... &row1, delrow, array) ... character id*56 ...
    (comp.lang.fortran)
  • Re: allocatable scalar in f2003
    ... both appear to imply that in f2003 a scalar character variable may be ... none of the compilers I tried the following program on would compile ... g95 says something slightly different: ... Syntax error in character length specification at ...
    (comp.lang.fortran)