------- Comment #21 from sgk at troutmask dot apl dot washington dot edu 2007-03-20 01:47 ------- Subject: Re: Bad IOSTAT values when readings NAMELISTs past EOF
On Mon, Mar 19, 2007 at 10:59:25PM -0000, anlauf at gmx dot de wrote: > > > ------- Comment #20 from anlauf at gmx dot de 2007-03-19 22:59 ------- > (In reply to comment #19) > > Jerry, > > I tried FX's snapshot from today (20070319) and the example > above works. A somewhat more twisted example which I have > not yet been able to reduce leads to an IOSTAT value of 5001 > (BTW: what does that value mean?) in the namelist read, although > the subroutine position_nml succeeds. > > The file libgfortran is not in that distribution. Could you > please put here these IOSTAT values? Nor are these in the > .info files. Thanks! typedef enum { ERROR_FIRST = -3, /* Marker for the first error. */ ERROR_EOR = -2, ERROR_END = -1, ERROR_OK = 0, /* Indicates success, must be zero. */ ERROR_OS = 5000, /* Operating system error, more info in errno. */ ERROR_OPTION_CONFLICT, ERROR_BAD_OPTION, ERROR_MISSING_OPTION, ERROR_ALREADY_OPEN, ERROR_BAD_UNIT, ERROR_FORMAT, ERROR_BAD_ACTION, ERROR_ENDFILE, ERROR_BAD_US, ERROR_READ_VALUE, ERROR_READ_OVERFLOW, ERROR_INTERNAL, ERROR_INTERNAL_UNIT, ERROR_ALLOCATION, ERROR_DIRECT_EOR, ERROR_SHORT_RECORD, ERROR_CORRUPT_FILE, ERROR_LAST /* Not a real error, the last error # + 1. */ } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31052