This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/56786] [4.7/4.8/4.9 Regression] Namelist read fails with designators containing embedded spaces
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 28 Apr 2013 17:21:12 +0000
- Subject: [Bug libfortran/56786] [4.7/4.8/4.9 Regression] Namelist read fails with designators containing embedded spaces
- Auto-submitted: auto-generated
- References: <bug-56786-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56786
--- Comment #8 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2013-04-28 17:21:12 UTC ---
Author: jvdelisle
Date: Sun Apr 28 17:20:06 2013
New Revision: 198375
URL: http://gcc.gnu.org/viewcvs?rev=198375&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/namelist_81.f90
Modified:
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/libgfortran/ChangeLog
branches/gcc-4_7-branch/libgfortran/io/list_read.c
branches/gcc-4_7-branch/libgfortran/io/transfer.c