[Patch, Fortran] PR56735 - Fix namelist read regression with "?"

Jerry DeLisle jvdelisle@charter.net
Fri Mar 29 01:31:00 GMT 2013


On 03/28/2013 06:48 AM, Tobias Burnus wrote:
> 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

Yes OK.  Please test on the backports and allow it to settle on trunk for a bit
before the backport.

Jerry



More information about the Fortran mailing list