https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61499
--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Fri Jun 27 21:11:20 2014 New Revision: 212089 URL: https://gcc.gnu.org/viewcvs?rev=212089&root=gcc&view=rev Log: 2014-06-27 Jerry DeLisle <jvdeli...@gcc.gnu.org> Backport from trunk. 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: branches/gcc-4_9-branch/libgfortran/ChangeLog branches/gcc-4_9-branch/libgfortran/io/list_read.c