OSDN Git Service

2013-04-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Apr 2013 17:20:06 +0000 (17:20 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Apr 2013 17:20:06 +0000 (17:20 +0000)
commitbda5e163c26c2c8ee321fceecf2d1c6bbfd6d307
tree0ad3f86f54a8863631ac3cb56f5535988a0956a7
parent25f666e0ff94c933bfec34192f506fbbe2071d97
2013-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from mainline:

PR libfortran/56786
* io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
when checking for EOF. Use error return mechanism when EOF detected.
Do not return FAILURE unless parse_err_msg and parse_err_msg_size have
been set. Use hit_eof.
(nml_get_obj_data): Likewise use the correct error mechanism.
* io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
mode.

Backport from trunk:

PR fortran/56786
* gfortran.dg/namelist_81.f90:  New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@198375 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/namelist_81.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/list_read.c
libgfortran/io/transfer.c