Namelist IOSTAT behaviour

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Jun 9 17:39:00 GMT 2005


On Thu, Jun 09, 2005 at 02:32:16PM +0200, Neilen Marais wrote:
> Hi!
> 
> What value of IOSTAT should a namelist return in the case that the
> namelist is not present whitin the file being read? If I use:
> 
>     READ(unit=infileunit, nml=debugging,  iostat=ios)
> 
> and the file does not contain a debugging namelist at all, ios is
> negative when using intel fortran, but positive when using gfortran.
> 
> Is the behaviour defined in the fortran strandard, or can I not make an
> assumption in this regard?
>
 
In reading 9.4.1.4, I infer that you have found a bug in gfortran.
Please submit a bug report through bugzilla.

-- 
Steve



More information about the Fortran mailing list