2014-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/58324
	* io/list_read.c (finish_list_read): Read one character to check
	for the end of the file.  If it is the end, then issue the file
	end error message.  If not, use eat_line to reach the end
	without giving error.  The next attempt to read will then
	issue the error as described above.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208591 138bc75d-0d04-0410-961f-82ee72b054a4
2014-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/58324
	* gfortran.dg/list_read_12.f90: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208592 138bc75d-0d04-0410-961f-82ee72b054a4