[Bug libfortran/46800] Handle CTRL-D correctly with STDIN
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 16 10:29:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46800
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
This works now. The following test program
(with ^D pressed after invoking a.out) yields
ig25@linux-fd1f:/tmp> cat a.f90
ios = 123456
read (*,*,iostat=ios) a
print *,ios,is_iostat_end(ios)
end
ig25@linux-fd1f:/tmp> gfortran a.f90
ig25@linux-fd1f:/tmp> ./a.out
-1 T
Not really possible to check in the test suite.
Closing.
More information about the Gcc-bugs
mailing list