[Patch, libfortran] PR 49296 List read of file without EOR

Janne Blomqvist blomqvist.janne@gmail.com
Sun Jul 3 21:57:00 GMT 2011


Hi,

the attached patch fixes the remaining cases of handling input that
ends in EOF instead of a normal separator for list formatted read of
the primitive types. Ok for trunk and 4.6?

2011-07-04  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/49296
	* io/list_read.c (read_logical): Don't error out if a valid value
	is followed by EOF instead of a normal separator.
	(read_integer): Likewise.

testsuite:

2011-07-04  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/49296
	* gfortran.dg/read_list_eof_1.f90: Add tests for integer, real,
	and logical reads.


-- 
Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read_list_eof_2.diff
Type: text/x-patch
Size: 1111 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110703/783ab4a6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read_list_eof_1.f90
Type: text/x-fortran
Size: 1317 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110703/783ab4a6/attachment-0001.bin>


More information about the Gcc-patches mailing list