re PR fortran/78670 ([F03] Incorrect file position with namelist read under DTIO)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 29 Mar 2017 21:37:45 +0000 (21:37 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 29 Mar 2017 21:37:45 +0000 (21:37 +0000)
commitfdc54f39c14aa7fc3820853bf8deee8e02401a55
tree44ff4cdae71ae2f346b8b68f7ba425b6743cf859
parent533c0b69430beae5274a7f456e299afb16afc2f0
re PR fortran/78670 ([F03] Incorrect file position with namelist read under DTIO)

2017-03-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/78670
* io/list_read.c (nml_get_obj_data): Delete code which calls the
child read procedure. (nml_read_obj): Insert the code which
calls the child procedure. Don't need to touch nodes if using
dtio since parent will not be traversing the components.

PR libgfortran/78670
* gfortran.dg/dtio_25.f90: Use 'a1' format when trying to read
a character of length 1. Update test for success.
* gfortran.dg/dtio_28.f03: New test.
* gfortran.dg/dtio_4.f90: Update to open test file with status =
'scratch' to delete the file when done.

From-SVN: r246576
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dtio_25.f90
gcc/testsuite/gfortran.dg/dtio_28.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dtio_4.f90
libgfortran/ChangeLog
libgfortran/io/list_read.c