re PR fortran/47878 (187.facerec miscompares)
authorJakub Jelinek <jakub@redhat.com>
Thu, 24 Feb 2011 20:13:57 +0000 (21:13 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 24 Feb 2011 20:13:57 +0000 (21:13 +0100)
commitae01ced508fd6d5e9d624a6e225bef0741ebb736
tree70db0376a7fb8a2f0f1238edba4f17781f849d1a
parent01bd5703f577e2c3331c27c623d7a37c85ca2ffa
re PR fortran/47878 (187.facerec miscompares)

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.

* gfortran.dg/pr47878.f90: New test.

From-SVN: r170476
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr47878.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/transfer.c