https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81937
--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Sat Dec 16 19:50:42 2017 New Revision: 255750 URL: https://gcc.gnu.org/viewcvs?rev=255750&root=gcc&view=rev Log: 2017-12-16 Jerry DeLisle <jvdeli...@gcc.gnu.org> PR libgfortran/81937 * io/list_read.c (next_char_internal): Don't attempt to read from the internal unit stream if no bytes are left. Decrement bytes_left in the right place. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/io/list_read.c