[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-30 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

Jerry DeLisle  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Jerry DeLisle  ---
Fixed on 5, 6, and 7. Closing

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-29 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

--- Comment #8 from Jerry DeLisle  ---
Author: jvdelisle
Date: Fri Sep 30 04:49:36 2016
New Revision: 240645

URL: https://gcc.gnu.org/viewcvs?rev=240645=gcc=rev
Log:
2016-09-29  Jerry DeLisle  

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-5-branch/gcc/testsuite/gfortran.dg/inquire_17.f90
Modified:
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/libgfortran/ChangeLog
branches/gcc-5-branch/libgfortran/io/transfer.c

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-29 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

Jerry DeLisle  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jvdelisle at gcc dot 
gnu.org

--- Comment #7 from Jerry DeLisle  ---
Fixed on six, one more to go

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-29 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

--- Comment #6 from Jerry DeLisle  ---
Author: jvdelisle
Date: Thu Sep 29 18:08:05 2016
New Revision: 240627

URL: https://gcc.gnu.org/viewcvs?rev=240627=gcc=rev
Log:
2016-09-29  Jerry DeLisle  

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

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-28 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

--- Comment #5 from Jerry DeLisle  ---
Fixed on trunk. Will backport in a few days.

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-28 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

--- Comment #4 from Jerry DeLisle  ---
Author: jvdelisle
Date: Wed Sep 28 19:43:03 2016
New Revision: 240593

URL: https://gcc.gnu.org/viewcvs?rev=240593=gcc=rev
Log:
2016-09-28  Jerry DeLisle  

PR libgfortran/77707
* gfortran.dg/inquire_17.f90: New test.

Added:
trunk/gcc/testsuite/gfortran.dg/inquire_17.f90
Modified:
trunk/gcc/testsuite/ChangeLog

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-28 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

--- Comment #3 from Jerry DeLisle  ---
Author: jvdelisle
Date: Wed Sep 28 19:38:03 2016
New Revision: 240592

URL: https://gcc.gnu.org/viewcvs?rev=240592=gcc=rev
Log:
2016-09-28  Jerry DeLisle  

PR libgfortran/77707
io/transfer.c (next_record): Flush before calculating next_record.
Correctly calculate.

Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/transfer.c

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-28 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

Dominique d'Humieres  changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-09-28
  Known to work|4.3.5   |4.3.6
 Ever confirmed|0   |1
  Known to fail||4.4.7, 5.4.0, 6.2.0, 7.0

--- Comment #2 from Dominique d'Humieres  ---
Patch submitted at https://gcc.gnu.org/ml/fortran/2016-09/msg00172.html.

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-23 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

Jerry DeLisle  changed:

   What|Removed |Added

 CC||jvdelisle at gcc dot gnu.org

--- Comment #1 from Jerry DeLisle  ---
I will look into this.

[Bug fortran/77707] [5/6/7 Regression] formatted direct access: nextrec off by one

2016-09-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77707

Richard Biener  changed:

   What|Removed |Added

   Keywords||wrong-code
  Known to work||4.3.5
   Target Milestone|--- |5.5
Summary|[4.5-7.0 Regression]|[5/6/7 Regression]
   |formatted direct access:|formatted direct access:
   |nextrec off by one  |nextrec off by one