This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR56735 - Fix namelist read regression with "?"
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Thu, 28 Mar 2013 18:31:28 -0700
- Subject: Re: [Patch, Fortran] PR56735 - Fix namelist read regression with "?"
- References: <51544A2B dot 2010608 at net-b dot de>
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