[patch, libfortran] PR37083 Formatted read of line without trailing new-line fails
Jerry DeLisle
jvdelisle@verizon.net
Sun Oct 12 23:25:00 GMT 2008
Hi folks,
This one was a little tricky.
The attached patch fixes this by backing up a bit on the patch for PR34676 and
adding an error check at the end of finish_list_read.
Regression tested and NIST tested on x86-64.
OK for trunk?
Regards,
Jerry
2008-10-12 Jerry DeLisle <jvdelisle@gcc.gnu.org
PR libfortran/37083
* io/list_read.c (next_char): Simplify EOF tests and set endfile flag.
(finish_list_read): Add EOF check.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr37083.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20081012/1e708c04/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: list_read_9.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20081012/1e708c04/attachment.f90>
More information about the Fortran
mailing list