This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Control-D not closing unit 5 in list-directed input
- From: John Nabelek <nabelek at coas dot oregonstate dot edu>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 25 Jan 2008 13:23:56 -0800
- Subject: Control-D not closing unit 5 in list-directed input
I would like to report a problem in gfortran IO.
Normally (in f77, g77) one could enter Control-D to close unit 5 for
input (and thus accept default values).
In gfortran this works for 'formatted' input but not 'list-directed'
input.
With a statement such as
read(5,*,iostat=ios) number
entering Control-D has no effect. The program just sits at this
statement and does not continue. In f77 and g77, Control-D at this
line would close unit 5 and continue execution.
Would it be possible to make gfortran behave as f77 and g77 did?
Cheers -John