This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: gfortran patch for PR 18778 Abort on endfile on unopened unit
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Bud Davis <bdavis9659 at comcast dot net>,"gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 27 Dec 2004 14:36:27 +0000
- Subject: Re: gfortran patch for PR 18778 Abort on endfile on unopened unit
- Organization: CodeSourcery
- References: <1103859364.30627.12.camel@localhost.localdomain>
> 2004-12-23 Bud Davis <bdavis9659@comcast.net>
>
> PR fortran/18778
> * io/transfer.c (us_read): no bytes available is not a
> runtime error.
> * io/endfile.c (st_endfile): open the unit if needed.
> Index: gcc/libgfortran/io/endfile.c
> ===================================================================
> ! /* endfile without an open on this unit.
> ! not an error, so let's make a unit
> ! */
> ! memset (&u_flags, '\0', sizeof (u_flags));
> ! u_flags.access = ACCESS_SEQUENTIAL;
> ! u_flags.action = ACTION_READWRITE;
> ! u_flags.form = FORM_UNFORMATTED;
Why not *_UNSPECIFIED here?
Other than that, Ok.
Paul