------- Comment #1 from jvdelisle at gcc dot gnu dot org 2007-06-18 01:00 ------- Not saying whether this is valid or not. However Intel ifort says:
fortcom: Error: john.f90, line 13: An automatic object is invalid in a main program. [STRINGB] CHARACTER(len(halfit(stringa))) :: stringb -----------------------------------^ compilation aborted for john.f90 (code 1) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32386