[Patch, Fortran] PR56735 - Fix namelist read regression with "?"
Tobias Burnus
burnus@net-b.de
Thu Mar 28 13:48:00 GMT 2013
gfortran supports "?" and "=?" as input with namelists (a somewhat
common vendor extension). Either of those can be used with stdin to
print the available fields of the namelist. With non-stdin input, the ?
and =? lines are simply ignored.
However, two patches, one in 2008 and one in 2011 broke that feature.
The first one broke the output of the namelist with stdin, the second
caused that the namelist read is aborted (with iostat == 0) - and the
namelist ist not read.
The attached patch fixes this. GCC 4.6 to 4.9 are affected by the latter
issue (for which the PR has been filled). The other issue affects 4.5 to
4.9 and only applies to stdin input, for which no output is shown when
using "?".
Build and regtested on x86-64-gnu-linux.
OK for the trunk - and for GCC 4.6 to 4.8?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nml-ext.diff
Type: text/x-patch
Size: 3041 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130328/ba388d00/attachment.bin>
More information about the Fortran
mailing list