gcc/libgfortran/io
Jerry DeLisle 1f10d710e3 re PR fortran/78881 ([F03] reading from string with DTIO procedure does not work properly)
2017-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/78881
	* io/io.h (st_parameter_dt): Rename unused component last_char to
	child_saved_iostat. Move comment to gfc_unit.
	* io/list_read.c (list_formatted_read_scalar): After call to
	child READ procedure, save the returned iostat value for later
	check. (finish_list_read): Only finish READ if child_saved_iostat
	was OK.
	* io/transfer.c (read_sf_internal): If there is a saved character
	in last character, seek back one. Add a new check for EOR
	condition. (read_sf): If there is a saved character
	in last character, seek back one. (formatted_transfer_scalar_read):
	Initialize last character before invoking child procedure.
	(data_transfer_init): If child dtio, set advance
	status to nonadvancing. Move update of size and check for EOR
	condition to before child dtio return.

	* gfortran.dg/dtio_26.f90: New test.

From-SVN: r246478
2017-03-25 18:48:01 +00:00
..
close.c Update copyright years. 2017-01-01 13:07:43 +01:00
fbuf.c Update copyright years. 2017-01-01 13:07:43 +01:00
fbuf.h Update copyright years. 2017-01-01 13:07:43 +01:00
file_pos.c Update copyright years. 2017-01-01 13:07:43 +01:00
format.c Update copyright years. 2017-01-01 13:07:43 +01:00
format.h Update copyright years. 2017-01-01 13:07:43 +01:00
inquire.c Update copyright years. 2017-01-01 13:07:43 +01:00
intrinsics.c Update copyright years. 2017-01-01 13:07:43 +01:00
io.h re PR fortran/78881 ([F03] reading from string with DTIO procedure does not work properly) 2017-03-25 18:48:01 +00:00
list_read.c re PR fortran/78881 ([F03] reading from string with DTIO procedure does not work properly) 2017-03-25 18:48:01 +00:00
lock.c Update copyright years. 2017-01-01 13:07:43 +01:00
open.c Update copyright years. 2017-01-01 13:07:43 +01:00
read.c Update copyright years. 2017-01-01 13:07:43 +01:00
size_from_kind.c Update copyright years. 2017-01-01 13:07:43 +01:00
transfer.c re PR fortran/78881 ([F03] reading from string with DTIO procedure does not work properly) 2017-03-25 18:48:01 +00:00
transfer128.c Update copyright years. 2017-01-01 13:07:43 +01:00
unit.c re PR fortran/78854 ([F03] DTIO namelist output not working on internal unit) 2017-03-11 14:49:57 +00:00
unix.c Update copyright years. 2017-01-01 13:07:43 +01:00
unix.h Update copyright years. 2017-01-01 13:07:43 +01:00
write.c re PR fortran/78854 ([F03] DTIO namelist output not working on internal unit) 2017-03-11 14:49:57 +00:00
write_float.def Update copyright years. 2017-01-01 13:07:43 +01:00