[Bug libfortran/88776] Namelist read from stdin: loss of data

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 14 01:13:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88776

--- Comment #8 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Mon Jan 14 01:12:27 2019
New Revision: 267911

URL: https://gcc.gnu.org/viewcvs?rev=267911&root=gcc&view=rev
Log:
2019-01-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libfortran/88776
        * io/list_read.c (namelist_read): Use nml_err_ret path on read error
        not based on stdin_unit.
        * io/open.c (newunit): Free format buffer if the unit specified is for
        stdin, stdout, or stderr.

        * gfortran.dg/namelist_96.f90: New test.

Modified:
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/libgfortran/ChangeLog
    branches/gcc-7-branch/libgfortran/io/list_read.c
    branches/gcc-7-branch/libgfortran/io/open.c


More information about the Gcc-bugs mailing list