* [patch, testcase, fortran, committed] Fix read_dir.f90
@ 2018-02-12 20:54 Thomas Koenig
0 siblings, 0 replies; only message in thread
From: Thomas Koenig @ 2018-02-12 20:54 UTC (permalink / raw)
To: fortran, gcc-patches
Hello world,
I just committed (in two attempts...) the patch below as obvious.
Reading a byte is fine on some operating systems, just not on
Linux.
I verified this on AIX first.
I'll keep the PR open for a few days to see if this fix really works
on all affected system.
Regards
Thomas
-! { dg-do run { xfail *-*-freebsd* *-*-dragonfly* hppa*-*-hpux*
powerpc-ibm-aix* } }
+! { dg-do run }
! PR67367
program bug
implicit none
@@ -12,7 +11,7 @@ program bug
call abort
end if
read(10, iostat=ios) c
- if (ios.ne.21) then
+ if (ios.ne.21.and.ios.ne.0) then
close(10, status='delete')
call abort
end if
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-12 20:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 20:54 [patch, testcase, fortran, committed] Fix read_dir.f90 Thomas Koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).