http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47694
--- Comment #24 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-03-05 00:05:40 UTC --- Author: jvdelisle Date: Sat Mar 5 00:05:34 2011 New Revision: 170692 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170692 Log: 2011-03-04 Jakub Jelinek <ja...@redhat.com> Backport from mainline PR fortran/47878 * io/transfer.c (read_sf): Call fbuf_getptr only at the end, and subtract n, dtp->u.p.sf_seen_eor and seen_comma from it. 2011-03-04 Janne Blomqvist <j...@gcc.gnu.org> Jerry DeLisle <jvdeli...@gcc.gnu.org> Backport from mainline PR libfortran/47694 * io/fbuf.h (fbuf_getptr): New inline function. * io/transfer.c (read_sf): Use fbuf_getptr and fbuf_getc to scan through the string instead of fbuf_read. 2011-03-04 Jerry DeLisle <jvdeli...@gcc.gnu.org> Backport from mainline PR libgfortran/47878 * gfortran.dg/pr47878.f90: New test. Added: branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/pr47878.f90 Modified: branches/gcc-4_5-branch/gcc/testsuite/ChangeLog branches/gcc-4_5-branch/libgfortran/ChangeLog branches/gcc-4_5-branch/libgfortran/io/fbuf.h branches/gcc-4_5-branch/libgfortran/io/transfer.c