This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Sep 2016 18:08:37 +0000
- Subject: [Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one
- Auto-submitted: auto-generated
- References: <bug-77707-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707
--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Thu Sep 29 18:08:05 2016
New Revision: 240627
URL: https://gcc.gnu.org/viewcvs?rev=240627&root=gcc&view=rev
Log:
2016-09-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backport from trunk
PR libgfortran/77707
io/transfer.c (next_record): Flush before calculating next_record.
Correctly calculate.
* gfortran.dg/inquire_17.f90: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/inquire_17.f90
Modified:
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/libgfortran/ChangeLog
branches/gcc-6-branch/libgfortran/io/transfer.c