public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24268] New: gfortran rejects valid format statement
@ 2005-10-08 1:38 iwan at irs dot phy dot nrc dot ca
2005-10-08 3:24 ` [Bug fortran/24268] " jvdelisle at gcc dot gnu dot org
` (15 more replies)
0 siblings, 16 replies; 17+ messages in thread
From: iwan at irs dot phy dot nrc dot ca @ 2005-10-08 1:38 UTC (permalink / raw)
To: gcc-bugs
The following simple program is rejected by gfortran
(commandline: gfortran junk.f)
with this error message:
In file junk.f:6
* 1.4)
1
Error: Period required in format string at (1)
In file junk.f:4
write(6,10) x
1
Error: FORMAT label 10 at (1) not defined
c------------------------------ begin test program
program junk
real x
read(5,*) x
write(6,10) x
10 format(g1
* 1.4)
end
c------------------------------- end test program
The compilation succeeds with gcc 3.3.x and earlier
The compilation also succeeds if one removes the
blanks beetwen the line continuation and 1.4 in the format statement.
additional info
gfortran -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/home/iwan/gcc4.0.2
--enable-threads=posix --enable-__cxa_atexit -enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.2
--
Summary: gfortran rejects valid format statement
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: iwan at irs dot phy dot nrc dot ca
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
@ 2005-10-08 3:24 ` jvdelisle at gcc dot gnu dot org
2005-10-08 5:47 ` pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-10-08 3:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2005-10-08 03:24 -------
Confirmed on latest 4.1 cvs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
2005-10-08 3:24 ` [Bug fortran/24268] " jvdelisle at gcc dot gnu dot org
@ 2005-10-08 5:47 ` pinskia at gcc dot gnu dot org
2005-11-25 21:39 ` iwan at irs dot phy dot nrc dot ca
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-08 5:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-08 05:47 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Known to fail| |4.0.0 4.1.0
Last reconfirmed|0000-00-00 00:00:00 |2005-10-08 05:47:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
2005-10-08 3:24 ` [Bug fortran/24268] " jvdelisle at gcc dot gnu dot org
2005-10-08 5:47 ` pinskia at gcc dot gnu dot org
@ 2005-11-25 21:39 ` iwan at irs dot phy dot nrc dot ca
2005-12-08 7:20 ` jvdelisle at gcc dot gnu dot org
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: iwan at irs dot phy dot nrc dot ca @ 2005-11-25 21:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from iwan at irs dot phy dot nrc dot ca 2005-11-25 21:39 -------
Created an attachment (id=10339)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10339&action=view)
A one line change that seems to fix Bug 24268
Have tested the change on several large fortran 77 source files.
I'm not sure if a similar change is needed for case '+' in
format_lex().
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (2 preceding siblings ...)
2005-11-25 21:39 ` iwan at irs dot phy dot nrc dot ca
@ 2005-12-08 7:20 ` jvdelisle at gcc dot gnu dot org
2005-12-16 23:44 ` jvdelisle at gcc dot gnu dot org
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-08 7:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2005-12-08 07:20 -------
I am looking into this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (3 preceding siblings ...)
2005-12-08 7:20 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-16 23:44 ` jvdelisle at gcc dot gnu dot org
2005-12-16 23:49 ` jvdelisle at gcc dot gnu dot org
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-16 23:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2005-12-16 23:44 -------
Subject: Bug 24268
Author: jvdelisle
Date: Fri Dec 16 23:44:14 2005
New Revision: 108695
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108695
Log:
2005-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
* io.c (format_lex): Allow whitespace within text of format specifier.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/io.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (4 preceding siblings ...)
2005-12-16 23:44 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-16 23:49 ` jvdelisle at gcc dot gnu dot org
2005-12-21 6:51 ` jvdelisle at gcc dot gnu dot org
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-16 23:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2005-12-16 23:49 -------
Subject: Bug 24268
Author: jvdelisle
Date: Fri Dec 16 23:49:33 2005
New Revision: 108696
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108696
Log:
2005-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
* gfortran.dg/fmt_white.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/fmt_white.f
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (5 preceding siblings ...)
2005-12-16 23:49 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-21 6:51 ` jvdelisle at gcc dot gnu dot org
2005-12-21 6:52 ` jvdelisle at gcc dot gnu dot org
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-21 6:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2005-12-21 06:51 -------
Subject: Bug 24268
Author: jvdelisle
Date: Wed Dec 21 06:51:02 2005
New Revision: 108899
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108899
Log:
2005-12-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
* io.c (format_lex): Allow whitespace within text of format specifier.
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/io.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (6 preceding siblings ...)
2005-12-21 6:51 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-21 6:52 ` jvdelisle at gcc dot gnu dot org
2005-12-21 6:56 ` jvdelisle at gcc dot gnu dot org
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-21 6:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jvdelisle at gcc dot gnu dot org 2005-12-21 06:52 -------
Subject: Bug 24268
Author: jvdelisle
Date: Wed Dec 21 06:52:38 2005
New Revision: 108900
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108900
Log:
2005-12-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
* gfortran.dg/fmt_white.f: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/fmt_white.f
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (7 preceding siblings ...)
2005-12-21 6:52 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-21 6:56 ` jvdelisle at gcc dot gnu dot org
2006-01-02 8:13 ` jvdelisle at gcc dot gnu dot org
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-21 6:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jvdelisle at gcc dot gnu dot org 2005-12-21 06:56 -------
This is now fixed for the specific test case. 4.1 and 4.2 are in sync. I plan
to go back and review for other possible cases of whitespace. Just want to
keep this synchronized.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (8 preceding siblings ...)
2005-12-21 6:56 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-02 8:13 ` jvdelisle at gcc dot gnu dot org
2006-01-02 8:15 ` jvdelisle at gcc dot gnu dot org
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-02 8:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jvdelisle at gcc dot gnu dot org 2006-01-02 08:13 -------
Submitted a new patch for approval that is a final fix for this bug.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet| |4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (9 preceding siblings ...)
2006-01-02 8:13 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-02 8:15 ` jvdelisle at gcc dot gnu dot org
2006-01-06 1:22 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-02 8:15 UTC (permalink / raw)
To: gcc-bugs
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet|4.1 |
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (10 preceding siblings ...)
2006-01-02 8:15 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-06 1:22 ` jvdelisle at gcc dot gnu dot org
2006-01-06 1:28 ` jvdelisle at gcc dot gnu dot org
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-06 1:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jvdelisle at gcc dot gnu dot org 2006-01-06 01:22 -------
Subject: Bug 24268
Author: jvdelisle
Date: Fri Jan 6 01:21:56 2006
New Revision: 109402
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109402
Log:
2006-01-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
* io.c (next_char_not_space): New function that returns the next
character that is not white space.
(format_lex): Use the new function to skip whitespace within
a format string.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/io.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (11 preceding siblings ...)
2006-01-06 1:22 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-06 1:28 ` jvdelisle at gcc dot gnu dot org
2006-01-08 1:53 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-06 1:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jvdelisle at gcc dot gnu dot org 2006-01-06 01:28 -------
Subject: Bug 24268
Author: jvdelisle
Date: Fri Jan 6 01:28:40 2006
New Revision: 109404
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109404
Log:
2005-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
* gfortran.dg/fmt_white.f: Update test.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/fmt_white.f
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (12 preceding siblings ...)
2006-01-06 1:28 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-08 1:53 ` jvdelisle at gcc dot gnu dot org
2006-01-08 1:56 ` jvdelisle at gcc dot gnu dot org
2006-01-08 2:22 ` jvdelisle at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-08 1:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from jvdelisle at gcc dot gnu dot org 2006-01-08 01:53 -------
Subject: Bug 24268
Author: jvdelisle
Date: Sun Jan 8 01:53:06 2006
New Revision: 109467
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109467
Log:
2006-01-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
* io.c (next_char_not_space): New function that returns the next
character that is not white space.
(format_lex): Use the new function to skip whitespace within
a format string.
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/io.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (13 preceding siblings ...)
2006-01-08 1:53 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-08 1:56 ` jvdelisle at gcc dot gnu dot org
2006-01-08 2:22 ` jvdelisle at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-08 1:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from jvdelisle at gcc dot gnu dot org 2006-01-08 01:56 -------
Subject: Bug 24268
Author: jvdelisle
Date: Sun Jan 8 01:56:22 2006
New Revision: 109468
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109468
Log:
2005-01-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/24268
* gfortran.dg/fmt_white.f: Update test.
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/fmt_white.f
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug fortran/24268] gfortran rejects valid format statement
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
` (14 preceding siblings ...)
2006-01-08 1:56 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-08 2:22 ` jvdelisle at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-08 2:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from jvdelisle at gcc dot gnu dot org 2006-01-08 02:22 -------
Fixed on 4.1 and 4.2
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24268
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2006-01-08 2:22 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-08 1:38 [Bug fortran/24268] New: gfortran rejects valid format statement iwan at irs dot phy dot nrc dot ca
2005-10-08 3:24 ` [Bug fortran/24268] " jvdelisle at gcc dot gnu dot org
2005-10-08 5:47 ` pinskia at gcc dot gnu dot org
2005-11-25 21:39 ` iwan at irs dot phy dot nrc dot ca
2005-12-08 7:20 ` jvdelisle at gcc dot gnu dot org
2005-12-16 23:44 ` jvdelisle at gcc dot gnu dot org
2005-12-16 23:49 ` jvdelisle at gcc dot gnu dot org
2005-12-21 6:51 ` jvdelisle at gcc dot gnu dot org
2005-12-21 6:52 ` jvdelisle at gcc dot gnu dot org
2005-12-21 6:56 ` jvdelisle at gcc dot gnu dot org
2006-01-02 8:13 ` jvdelisle at gcc dot gnu dot org
2006-01-02 8:15 ` jvdelisle at gcc dot gnu dot org
2006-01-06 1:22 ` jvdelisle at gcc dot gnu dot org
2006-01-06 1:28 ` jvdelisle at gcc dot gnu dot org
2006-01-08 1:53 ` jvdelisle at gcc dot gnu dot org
2006-01-08 1:56 ` jvdelisle at gcc dot gnu dot org
2006-01-08 2:22 ` 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).