https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61499
--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Fri Jun 27 04:23:36 2014 New Revision: 212059 URL: https://gcc.gnu.org/viewcvs?rev=212059&root=gcc&view=rev Log: 2014-06-26 Jerry DeLisle <jvdeli...@gcc.gnu.org> PR libgfortran/61499 * io/list_read.c (eat_spaces): Use a 'for' loop instead of 'while' loop to skip the loop if there are no bytes left in the string. Only seek if actual spaces can be skipped. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/io/list_read.c