public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33400] New: Formatted read fails if line ends without line break
@ 2007-09-11 20:40 burnus at gcc dot gnu dot org
2007-09-15 15:32 ` [Bug fortran/33400] " tkoenig at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-09-11 20:40 UTC (permalink / raw)
To: gcc-bugs
The following program works if one changes advance="no" into "yes". Otherwise
one gets the run-time error message:
At line 7 of file tes.f90 (unit = 20, file = 'test.dat')
Fortran runtime error: End of file
This program works with NAG f95, ifort, g95, openf95.
This is the last remaining bug to get FGSL working.
http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/
integer, parameter :: fgsl_strmax = 128
character(len=fgsl_strmax) :: ieee_str1, ieee_str2
open(unit=20, file='test.dat',form='FORMATTED')
write(20,'(a)',advance="no") ' 1.01010101010101010101010101010101&
&01010101010101010101*2^-2 1.01010101010101010101011*2^-2'
rewind(20)
read(20, fmt=*) ieee_str1, ieee_str2
if (trim(ieee_str1) /= &
'1.0101010101010101010101010101010101010101010101010101*2^-2') &
stop 'ERROR'
if (trim(ieee_str2) /= &
'1.01010101010101010101011*2^-2') &
stop 'ERROR'
end
--
Summary: Formatted read fails if line ends without line break
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33400
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/33400] Formatted read fails if line ends without line break
2007-09-11 20:40 [Bug fortran/33400] New: Formatted read fails if line ends without line break burnus at gcc dot gnu dot org
@ 2007-09-15 15:32 ` tkoenig at gcc dot gnu dot org
2007-09-20 3:36 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2007-09-15 15:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tkoenig at gcc dot gnu dot org 2007-09-15 15:31 -------
Confirmed.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-09-15 15:31:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33400
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/33400] Formatted read fails if line ends without line break
2007-09-11 20:40 [Bug fortran/33400] New: Formatted read fails if line ends without line break burnus at gcc dot gnu dot org
2007-09-15 15:32 ` [Bug fortran/33400] " tkoenig at gcc dot gnu dot org
@ 2007-09-20 3:36 ` jvdelisle at gcc dot gnu dot org
2007-09-27 0:11 ` patchapp at dberlin dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-09-20 3:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-09-20 03:36 -------
I will have a look.
--
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|NEW |ASSIGNED
Last reconfirmed|2007-09-15 15:31:55 |2007-09-20 03:36:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33400
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/33400] Formatted read fails if line ends without line break
2007-09-11 20:40 [Bug fortran/33400] New: Formatted read fails if line ends without line break burnus at gcc dot gnu dot org
2007-09-15 15:32 ` [Bug fortran/33400] " tkoenig at gcc dot gnu dot org
2007-09-20 3:36 ` jvdelisle at gcc dot gnu dot org
@ 2007-09-27 0:11 ` patchapp at dberlin dot org
2007-09-28 16:55 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: patchapp at dberlin dot org @ 2007-09-27 0:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2007-09-27 00:11 -------
Subject: Bug number PR33400
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/2007-09/msg01925.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33400
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/33400] Formatted read fails if line ends without line break
2007-09-11 20:40 [Bug fortran/33400] New: Formatted read fails if line ends without line break burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-09-27 0:11 ` patchapp at dberlin dot org
@ 2007-09-28 16:55 ` jvdelisle at gcc dot gnu dot org
2007-09-28 16:56 ` jvdelisle at gcc dot gnu dot org
2007-09-30 14:37 ` jvdelisle at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-09-28 16:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-09-28 16:55 -------
Subject: Bug 33400
Author: jvdelisle
Date: Fri Sep 28 16:55:07 2007
New Revision: 128868
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128868
Log:
2007-09-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33400
* io/list_read.c (next_char): Interpret encountering the end of file
the
first time as an end of line. Subsequent reads give EOF error.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/list_read.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33400
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/33400] Formatted read fails if line ends without line break
2007-09-11 20:40 [Bug fortran/33400] New: Formatted read fails if line ends without line break burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-09-28 16:55 ` jvdelisle at gcc dot gnu dot org
@ 2007-09-28 16:56 ` jvdelisle at gcc dot gnu dot org
2007-09-30 14:37 ` jvdelisle at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-09-28 16:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2007-09-28 16:56 -------
Fixed on trunk
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33400
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/33400] Formatted read fails if line ends without line break
2007-09-11 20:40 [Bug fortran/33400] New: Formatted read fails if line ends without line break burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-09-28 16:56 ` jvdelisle at gcc dot gnu dot org
@ 2007-09-30 14:37 ` jvdelisle at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-09-30 14:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2007-09-30 14:37 -------
Subject: Bug 33400
Author: jvdelisle
Date: Sun Sep 30 14:36:40 2007
New Revision: 128892
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128892
Log:
2007-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33400
* gfortran.dg/PR19872.f: Fix test condition.
* gfortran.dg/list_read_7.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/list_read_7.f90
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/PR19872.f
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33400
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-09-30 14:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-11 20:40 [Bug fortran/33400] New: Formatted read fails if line ends without line break burnus at gcc dot gnu dot org
2007-09-15 15:32 ` [Bug fortran/33400] " tkoenig at gcc dot gnu dot org
2007-09-20 3:36 ` jvdelisle at gcc dot gnu dot org
2007-09-27 0:11 ` patchapp at dberlin dot org
2007-09-28 16:55 ` jvdelisle at gcc dot gnu dot org
2007-09-28 16:56 ` jvdelisle at gcc dot gnu dot org
2007-09-30 14:37 ` 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).