Regression with dev_null.f90
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun May 22 00:47:00 GMT 2005
On Sat, May 21, 2005 at 03:39:14PM -0400, Andrew Pinski wrote:
>
> On May 21, 2005, at 3:30 PM, Steve Kargl wrote:
> >gfortran behavior appears to depend on the POSIX definition of
> >/dev/null. From http://www.opengroup.org/onlinepubs/009695399/toc.htm
> >
> > /dev/null -- An infinite data source and data sink. Data written
> > to /dev/null shall be discarded. Reads from /dev/null shall always
> > return end-of-file (EOF).
> >
> >This program prints
> >
> >i = 5
> >j = 1
>
> This is also what happens on powerpc-darwin so I don't think that
> is the problem.
>
The program I sent was bogus because it did not use feof()
to check for EOF. This suggests that the implementation
of READ(...,end=100) is not properly checking for EOF on
at least the platforms we've identified.
--
Steve
More information about the Fortran
mailing list