Fix fortran/PR23151 - illegal print syntax

Richard E Maine Richard.Maine@nasa.gov
Thu May 25 21:08:00 GMT 2006


On May 25, 2006, at 12:25 PM, tobias.schlueter@physik.uni-muenchen.de  
wrote:

> Is something like
>   PRINT (i), something
> never valid, even with ASSIGNed formats?

No, it is never valid. (Tricky to answer questions phrased in the  
negative, so I thought I better spell out the answer. :-))

There is no parens after the PRINT keyword, regardless of what is  
there. If it is an assigned format, what you have there is a variable  
name. That's just a variable name - not an expression or anything  
else that allows parens.

(Of course, that's an f77 answer, assigned formats no longer being in  
f95).

-- 
Richard Maine                |  Good judgment comes from experience;
Richard.Maine@nasa.gov       |  experience comes from bad judgment.
                             |        -- Mark Twain



More information about the Gcc-patches mailing list