[Prev][Next][Index]

mistaking function calls as a variable



The following program:
        program test
        character*10 func, a
        a = func()
        print *, 'got character ', a
        end

        character*10 function func()
        func = 'test'
        end

when being unparsed yield:

       program test
       character*10    func,a
       a = func
       print *,'got character ',a
       end

       character*10    function func () 
       func = 'test'
       end

Note that () after func in line 3 are missing.

-Ming