public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/27634] New: formatted reading/writing: real format without dot
@ 2006-05-16 22:02 manfred99 at gmx dot ch
2006-05-17 0:16 ` [Bug fortran/27634] " jvdelisle at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: manfred99 at gmx dot ch @ 2006-05-16 22:02 UTC (permalink / raw)
To: gcc-bugs
real val
character str*6
open(1,FILE="tmp.dat")
read(1,'(a6,f4)') str,val
print*,str,val
end
gfortran tells me as follows:
read(1,'(a6,f4)') str,val
1
Warning: Period required in format string at (1)
# ./a.out
At line 4 of file read_gfc_test.f
Fortran runtime error: Period required in format
(a6,f4)
^
At compile time, gfortran issues only a warning, although it aborts
unconditionally at runtime, which comes as a bad surprise.
Either gfortran should abort at compile time, or it should support
this syntax ("f4" as an equivalent of "f4.0").
Same issue also for writing.
Support would be probably easy (not regtested, but works for me):
At Line 726 of libgfortran/io/format.c:
if (t != FMT_PERIOD)
{
/* We treat missing decimal descriptor as 0 !! */
fmt->saved_token = t;
tail->u.real.d = 0;
break;
}
This is a regression vs. g77.
--
Summary: formatted reading/writing: real format without dot
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: manfred99 at gmx dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27634
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/27634] formatted reading/writing: real format without dot
2006-05-16 22:02 [Bug fortran/27634] New: formatted reading/writing: real format without dot manfred99 at gmx dot ch
@ 2006-05-17 0:16 ` jvdelisle at gcc dot gnu dot org
2006-05-22 4:35 ` patchapp at dberlin dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-05-17 0:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2006-05-17 00:16 -------
I will investigate this a bit.
--
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-05-17 00:16:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27634
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/27634] formatted reading/writing: real format without dot
2006-05-16 22:02 [Bug fortran/27634] New: formatted reading/writing: real format without dot manfred99 at gmx dot ch
2006-05-17 0:16 ` [Bug fortran/27634] " jvdelisle at gcc dot gnu dot org
@ 2006-05-22 4:35 ` patchapp at dberlin dot org
2006-05-29 19:29 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2006-05-22 4:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from patchapp at dberlin dot org 2006-05-22 04:35 -------
Subject: Bug number PR27634
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-05/msg01083.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27634
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/27634] formatted reading/writing: real format without dot
2006-05-16 22:02 [Bug fortran/27634] New: formatted reading/writing: real format without dot manfred99 at gmx dot ch
2006-05-17 0:16 ` [Bug fortran/27634] " jvdelisle at gcc dot gnu dot org
2006-05-22 4:35 ` patchapp at dberlin dot org
@ 2006-05-29 19:29 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:35 ` jvdelisle at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-05-29 19:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2006-05-29 19:29 -------
Subject: Bug 27634
Author: jvdelisle
Date: Mon May 29 19:28:48 2006
New Revision: 114212
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114212
Log:
2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/27634
* io/format.c (parse_format_list): Allow missing period in format only
if -std=legacy.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/format.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27634
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/27634] formatted reading/writing: real format without dot
2006-05-16 22:02 [Bug fortran/27634] New: formatted reading/writing: real format without dot manfred99 at gmx dot ch
` (2 preceding siblings ...)
2006-05-29 19:29 ` jvdelisle at gcc dot gnu dot org
@ 2006-05-29 19:35 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:40 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-05-29 19:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2006-05-29 19:34 -------
Subject: Bug 27634
Author: jvdelisle
Date: Mon May 29 19:33:43 2006
New Revision: 114213
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114213
Log:
2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/27634
* io.c (check_format): Add error for missing period in format
specifier unless -std=legacy.
* gfortran.texi: Add description of expanded namelist read and
missing period in format extensions.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/gfortran.texi
trunk/gcc/fortran/io.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27634
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/27634] formatted reading/writing: real format without dot
2006-05-16 22:02 [Bug fortran/27634] New: formatted reading/writing: real format without dot manfred99 at gmx dot ch
` (3 preceding siblings ...)
2006-05-29 19:35 ` jvdelisle at gcc dot gnu dot org
@ 2006-05-29 19:40 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:43 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:44 ` jvdelisle at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-05-29 19:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-05-29 19:39 -------
Subject: Bug 27634
Author: jvdelisle
Date: Mon May 29 19:39:15 2006
New Revision: 114214
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114214
Log:
2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/27634
* gfortran.dg/fmt_missing_period_1.f: New test.
* gfortran.dg/fmt_missing_period_2.f: New test.
* gfortran.dg/fmt_missing_period_3.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/fmt_missing_period_1.f
trunk/gcc/testsuite/gfortran.dg/fmt_missing_period_2.f
trunk/gcc/testsuite/gfortran.dg/fmt_missing_period_3.f
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27634
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/27634] formatted reading/writing: real format without dot
2006-05-16 22:02 [Bug fortran/27634] New: formatted reading/writing: real format without dot manfred99 at gmx dot ch
` (4 preceding siblings ...)
2006-05-29 19:40 ` jvdelisle at gcc dot gnu dot org
@ 2006-05-29 19:43 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:44 ` jvdelisle at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-05-29 19:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2006-05-29 19:42 -------
Fixed on 4.2 only. Will not go to 4.1
--
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=27634
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/27634] formatted reading/writing: real format without dot
2006-05-16 22:02 [Bug fortran/27634] New: formatted reading/writing: real format without dot manfred99 at gmx dot ch
` (5 preceding siblings ...)
2006-05-29 19:43 ` jvdelisle at gcc dot gnu dot org
@ 2006-05-29 19:44 ` jvdelisle at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-05-29 19:44 UTC (permalink / raw)
To: gcc-bugs
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27634
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-05-29 19:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-16 22:02 [Bug fortran/27634] New: formatted reading/writing: real format without dot manfred99 at gmx dot ch
2006-05-17 0:16 ` [Bug fortran/27634] " jvdelisle at gcc dot gnu dot org
2006-05-22 4:35 ` patchapp at dberlin dot org
2006-05-29 19:29 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:35 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:40 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:43 ` jvdelisle at gcc dot gnu dot org
2006-05-29 19:44 ` 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).