aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/transfer.c
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2013-03-31 20:32:33 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2013-03-31 20:32:33 +0000
commit83437e6709a57a4a8552e4a6a4b5b94b1ff34d82 (patch)
tree56a39940bf7f8affecaa141ef6044be7c6197dbd /libgfortran/io/transfer.c
parentce1731f46d009ca4092596c9bd7a19c65ca51a33 (diff)
downloadgcc-83437e6709a57a4a8552e4a6a4b5b94b1ff34d82.zip
gcc-83437e6709a57a4a8552e4a6a4b5b94b1ff34d82.tar.gz
gcc-83437e6709a57a4a8552e4a6a4b5b94b1ff34d82.tar.bz2
re PR libfortran/56786 (Namelist read fails with designators containing embedded spaces)
2013-03-31 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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 false 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. From-SVN: r197290
Diffstat (limited to 'libgfortran/io/transfer.c')
-rw-r--r--libgfortran/io/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c
index 6fa954c..bb93009 100644
--- a/libgfortran/io/transfer.c
+++ b/libgfortran/io/transfer.c
@@ -3840,7 +3840,7 @@ hit_eof (st_parameter_dt * dtp)
case NO_ENDFILE:
case AT_ENDFILE:
generate_error (&dtp->common, LIBERROR_END, NULL);
- if (!is_internal_unit (dtp))
+ if (!is_internal_unit (dtp) && !dtp->u.p.namelist_mode)
{
dtp->u.p.current_unit->endfile = AFTER_ENDFILE;
dtp->u.p.current_unit->current_record = 0;