This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32678] [4.2, 4.1]GFortan works incorrectly when writing with FORMAT Tx
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Sep 2007 09:35:45 -0000
- Subject: [Bug fortran/32678] [4.2, 4.1]GFortan works incorrectly when writing with FORMAT Tx
- References: <bug-32678-12095@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from jakub at gcc dot gnu dot org 2007-09-25 09:35 -------
Subject: Bug 32678
Author: jakub
Date: Tue Sep 25 09:35:35 2007
New Revision: 128748
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128748
Log:
PR libgfortran/32678
* io/transfer.c (formatted_transfer_scalar): Fix off by one error in
calculation of pos and skips. Don't allow pending_spaces to go
negative.
PR fortran/32678
* gfortran.dg/fmt_t_5.f90: New test.
Added:
branches/redhat/gcc-4_1-branch/gcc/testsuite/gfortran.dg/fmt_t_5.f90
Modified:
branches/redhat/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/redhat/gcc-4_1-branch/libgfortran/ChangeLog
branches/redhat/gcc-4_1-branch/libgfortran/io/transfer.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32678