[Bug fortran/58324] Bogus END-of-line error with list-directed I/O of file without trailing sequential record marker
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 15 15:12:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58324
--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Sat Mar 15 15:12:01 2014
New Revision: 208591
URL: http://gcc.gnu.org/viewcvs?rev=208591&root=gcc&view=rev
Log:
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.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/list_read.c
More information about the Gcc-bugs
mailing list