re PR fortran/80741 ([Regression 7/8] DTIO wrong code causes incorrect behaviour...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 17 May 2017 20:33:20 +0000 (20:33 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 17 May 2017 20:33:20 +0000 (20:33 +0000)
commit7f72e40263afd8d3e651a1a4ec3d5da9bc8eedd7
tree29800b9a3654c094d28b76ab48c3fe336be322ce
parent7ded3472ae5e5eec41909fcefc911e1092479f9b
re PR fortran/80741 ([Regression 7/8] DTIO wrong code causes incorrect behaviour of namelist READ)

2017-05-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/80741
* transfer.c (finalize_transfer): Reset last_char to 'empty'.
* file_pos.c (formatted_backspace): Likewise.
(st_endfile): Likewise.
(st_rewind): Likewise.
(st_flush): Likewise.

PR fortran/80741
* trans-io.c (transfer_namelist_element): Change check from
NULL_TREE to null_pointer_node.

From-SVN: r248170
gcc/fortran/ChangeLog
gcc/fortran/trans-io.c
gcc/testsuite/gfortran.dg/read_4.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/file_pos.c
libgfortran/io/transfer.c