This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix fortran/PR23151 - illegal print syntax



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]