This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, libgfortran] PR25036 Reopening file with STATUS='UNKNOWN' should work


Hello,

attached patch fixes PR 25036, i.e. allows reopening a file either
with no status specifier, or with status='unknown'.

The F2003 standard says that if status='unknown', which is the same as
if no status specifier is present, then the status is processor
dependent. So technically this is not a standard conformance bug, but
it's still a problem for some real codes, and it doesn't cost us
anything to allow it.

Thanks to Bernhard Fischer for bringing up this problem.

-- 
Janne Blomqvist

Attachment: ChangeLog
Description: Text document

Attachment: pr25036.diff
Description: Text document

Attachment: open_status_2.f90
Description: Text document

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]