]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR libfortran/56786 (Namelist read fails with designators containing...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 28 Apr 2013 17:20:06 +0000 (17:20 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 28 Apr 2013 17:20:06 +0000 (17:20 +0000)
commitbffdaff22a68303d392aaddfd7c324f3b220d558
tree0ad3f86f54a8863631ac3cb56f5535988a0956a7
parent64c759edc665580f86c645a74eefab8ffcfed8be
backport: re PR libfortran/56786 (Namelist read fails with designators containing embedded spaces)

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.

From-SVN: r198375
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