[tobi@marktplatz tests]$ cat open.f90 open(1,"name") end [tobi@marktplatz tests]$ gfortran open.f90 In file open.f90:1 open(1,"name") 1 Error: Syntax error in OPEN statement at (1) The compiler should recognize the string as the FILE argument to the open statement.
hmm, IFC rejects this also: main program open(1,"name") ^ Error 24 at (1:pr15322.f90) : syntax error 1 Error compilation aborted for pr15322.f90 (code 1)
Seems like Meissner's book had wrong code. Looking at the standard, I confirm that this should be a syntax error. Closing.