http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59700
--- Comment #20 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Sat Jan 11 18:57:20 2014 New Revision: 206553 URL: http://gcc.gnu.org/viewcvs?rev=206553&root=gcc&view=rev Log: 2014-01-11 Jerry DeLisle <jvdeli...@gcc.gnu> Dominique d'Humieres <domi...@lps.ens.fr> Steven G. Kargl <ka...@gcc.gnu.org> PR libfortran/59700 PR libfortran/59764 * io/io.h (struct st_parameter_dt): Assign expanded_read flag to unused bit. Define new variable line_buffer_pos. * io/list_read.c (free_saved, next_char, l_push_char, read_logical, read_real): Replace use of item_count with line_buffer_pos for line_buffer look ahead. (read_logical, read_integer, parse_real, read_real, check_type): Adjust location of free_line to after generating error messages to retain the correct item count for the message. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/io/io.h trunk/libgfortran/io/list_read.c