public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28339] New: gfortran misses a record from a format statement
@ 2006-07-11 12:25 mathewc at nag dot co dot uk
2006-07-11 14:10 ` [Bug fortran/28339] " mathewc at nag dot co dot uk
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: mathewc at nag dot co dot uk @ 2006-07-11 12:25 UTC (permalink / raw)
To: gcc-bugs
A straight gfortran applied to the code
PROGRAM MAIN
C .. Local Scalars ..
INTEGER I
C .. Local Arrays ..
CHARACTER*8 REC(3)
C .. Executable Statements ..
C
WRITE (REC,FMT=99999)
C
DO 20 I = 1, 3
WRITE (*,FMT=*) REC(I)
20 CONTINUE
C
99999 FORMAT ('12345678',/'Record2',/'Record3')
END
results in REC(1) containing '12345678', in REC(2) containing 'Record3', and in
REC(3) containing garbage.
--
Summary: gfortran misses a record from a format statement
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mathewc at nag dot co dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
@ 2006-07-11 14:10 ` mathewc at nag dot co dot uk
2006-07-12 1:53 ` jvdelisle at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mathewc at nag dot co dot uk @ 2006-07-11 14:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from mathewc at nag dot co dot uk 2006-07-11 14:10 -------
Apologies, as I should have added
%gfortran -v
%Using built-in specs.
%Target: x86_64-unknown-linux-gnu
%Configured with: ./configure --enable-languages=c,fortran
%--prefix=/opt/gfortran/irun : (reconfigured) ./configure
%--prefix=/opt/gfortran/irun --enable-languages=c,fortran
%Thread model: posix
%gcc version 4.2.0 20060524 (experimental)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
2006-07-11 14:10 ` [Bug fortran/28339] " mathewc at nag dot co dot uk
@ 2006-07-12 1:53 ` jvdelisle at gcc dot gnu dot org
2006-07-12 5:34 ` steven at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-12 1:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2006-07-12 01:53 -------
This is curious. I can confirm the behavior on my system here. If the first
record is made one character less, "1234567", it appears to give a clean
result.
I will have to think about this one a little more. I am in the middle of
another patch, but will get back to this after that.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-07-12 01:53:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
2006-07-11 14:10 ` [Bug fortran/28339] " mathewc at nag dot co dot uk
2006-07-12 1:53 ` jvdelisle at gcc dot gnu dot org
@ 2006-07-12 5:34 ` steven at gcc dot gnu dot org
2006-07-19 5:32 ` jvdelisle at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: steven at gcc dot gnu dot org @ 2006-07-12 5:34 UTC (permalink / raw)
To: gcc-bugs
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (2 preceding siblings ...)
2006-07-12 5:34 ` steven at gcc dot gnu dot org
@ 2006-07-19 5:32 ` jvdelisle at gcc dot gnu dot org
2006-07-20 4:10 ` patchapp at dberlin dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-19 5:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2006-07-19 05:32 -------
Well, I have found the problem here, but still need to formulate the solution.
For internal units, if the bytes left in a record is zero we break out of the
next_record_w function. Not a good thing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (3 preceding siblings ...)
2006-07-19 5:32 ` jvdelisle at gcc dot gnu dot org
@ 2006-07-20 4:10 ` patchapp at dberlin dot org
2006-07-22 3:14 ` jvdelisle at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: patchapp at dberlin dot org @ 2006-07-20 4:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from patchapp at dberlin dot org 2006-07-20 04:10 -------
Subject: Bug number PR28339
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00841.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (4 preceding siblings ...)
2006-07-20 4:10 ` patchapp at dberlin dot org
@ 2006-07-22 3:14 ` jvdelisle at gcc dot gnu dot org
2006-07-22 3:18 ` jvdelisle at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-22 3:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-07-22 03:14 -------
Subject: Bug 28339
Author: jvdelisle
Date: Sat Jul 22 03:14:27 2006
New Revision: 115670
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115670
Log:
2006-07-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/28339
* io/transfer.c (next_record_w): Use next_array_record result to set
END_FILE. (write_block): Test for END_FILE before the next write
occurs.
* io/unit.c (get_internal_unit): Initialize iunit->endfile for internal
unit.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/transfer.c
trunk/libgfortran/io/unit.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (5 preceding siblings ...)
2006-07-22 3:14 ` jvdelisle at gcc dot gnu dot org
@ 2006-07-22 3:18 ` jvdelisle at gcc dot gnu dot org
2006-07-22 6:05 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-22 3:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2006-07-22 03:18 -------
Subject: Bug 28339
Author: jvdelisle
Date: Sat Jul 22 03:18:33 2006
New Revision: 115671
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115671
Log:
2006-07-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/28339
* gfortran.dg/arrayio_8.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/arrayio_8.f90
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (6 preceding siblings ...)
2006-07-22 3:18 ` jvdelisle at gcc dot gnu dot org
@ 2006-07-22 6:05 ` jvdelisle at gcc dot gnu dot org
2006-07-28 10:17 ` tobias dot burnus at physik dot fu-berlin dot de
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-22 6:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2006-07-22 06:05 -------
Fixed on 4.2
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (7 preceding siblings ...)
2006-07-22 6:05 ` jvdelisle at gcc dot gnu dot org
@ 2006-07-28 10:17 ` tobias dot burnus at physik dot fu-berlin dot de
2006-07-28 14:56 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tobias dot burnus at physik dot fu-berlin dot de @ 2006-07-28 10:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from tobias dot burnus at physik dot fu-berlin dot de 2006-07-28 10:16 -------
> Resolution: FIXED
> Fixed on 4.2
What about 4.1.x?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (8 preceding siblings ...)
2006-07-28 10:17 ` tobias dot burnus at physik dot fu-berlin dot de
@ 2006-07-28 14:56 ` jvdelisle at gcc dot gnu dot org
2006-07-28 16:47 ` jvdelisle at gcc dot gnu dot org
2006-07-28 16:49 ` jvdelisle at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-28 14:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jvdelisle at gcc dot gnu dot org 2006-07-28 14:56 -------
Lately, unless someone requests, I have not been committing to 4.1 branch.
However, since you asked, I will gladly do so. BTW Thanks for the bug reports.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (9 preceding siblings ...)
2006-07-28 14:56 ` jvdelisle at gcc dot gnu dot org
@ 2006-07-28 16:47 ` jvdelisle at gcc dot gnu dot org
2006-07-28 16:49 ` jvdelisle at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-28 16:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jvdelisle at gcc dot gnu dot org 2006-07-28 16:47 -------
Subject: Bug 28339
Author: jvdelisle
Date: Fri Jul 28 16:46:57 2006
New Revision: 115798
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115798
Log:
2006-07-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/28339
* io/transfer.c (next_record_w): Use next_array_record result to set
END_FILE. (write_block): Test for END_FILE before the next write
occurs.
* io/unit.c (get_internal_unit): Initialize iunit->endfile for internal
unit.
Modified:
branches/gcc-4_1-branch/libgfortran/ChangeLog
branches/gcc-4_1-branch/libgfortran/io/transfer.c
branches/gcc-4_1-branch/libgfortran/io/unit.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug fortran/28339] gfortran misses a record from a format statement
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
` (10 preceding siblings ...)
2006-07-28 16:47 ` jvdelisle at gcc dot gnu dot org
@ 2006-07-28 16:49 ` jvdelisle at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-07-28 16:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jvdelisle at gcc dot gnu dot org 2006-07-28 16:49 -------
Subject: Bug 28339
Author: jvdelisle
Date: Fri Jul 28 16:48:58 2006
New Revision: 115799
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115799
Log:
2006-07-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/28339
* gfortran.dg/arrayio_8.f90: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/arrayio_8.f90
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28339
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-07-28 16:49 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-11 12:25 [Bug fortran/28339] New: gfortran misses a record from a format statement mathewc at nag dot co dot uk
2006-07-11 14:10 ` [Bug fortran/28339] " mathewc at nag dot co dot uk
2006-07-12 1:53 ` jvdelisle at gcc dot gnu dot org
2006-07-12 5:34 ` steven at gcc dot gnu dot org
2006-07-19 5:32 ` jvdelisle at gcc dot gnu dot org
2006-07-20 4:10 ` patchapp at dberlin dot org
2006-07-22 3:14 ` jvdelisle at gcc dot gnu dot org
2006-07-22 3:18 ` jvdelisle at gcc dot gnu dot org
2006-07-22 6:05 ` jvdelisle at gcc dot gnu dot org
2006-07-28 10:17 ` tobias dot burnus at physik dot fu-berlin dot de
2006-07-28 14:56 ` jvdelisle at gcc dot gnu dot org
2006-07-28 16:47 ` jvdelisle at gcc dot gnu dot org
2006-07-28 16:49 ` jvdelisle at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).