------- Comment #4 from tobias dot burnus at physik dot fu-berlin dot de 2006-04-26 06:22 ------- Subject: Re: gfortran: Warn/abort when format in write does not fit passed arguments
> I wonder if this is a case of illegal code. Intel errors on "infinite > format". Well, current g95, ifort 9/9.1, pgf95 6.0, pathscale and NAG f95 regard it as such and abort the execution or (NAG, today's g95) error on compilation. In the 2004-05 "Fortran 2003" draft (10.3) I find: "If an input/output list specifies at least one effective list item, at least one data edit descriptor shall exist in the format specification." For the compile-time I thus would really regard it as error. What the best behaviour for the run time is, is however debatable. (Abort [most compilers], ignore [g77, gfortran], ignore & warn [no compiler?].) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27304