public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line
@ 2015-01-06 5:59 thfanning at gmail dot com
2015-01-09 10:30 ` [Bug fortran/64506] " dominiq at lps dot ens.fr
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: thfanning at gmail dot com @ 2015-01-06 5:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64506
Bug ID: 64506
Summary: FORMAT Parse Error with Continuation Line
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: thfanning at gmail dot com
Created attachment 34385
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34385&action=edit
Sample program to illustrate parse error.
In a FORMAT statement, a character literal immediately followed by a
continuation character (&) and then a comment character (!) results in a parse
error. A simple program is attached that implements the following statements:
100 format('This format is OK.'&
)
200 format('This format fails.'&!comment
)
300 format('This format fails.'& !comment
)
400 format('This format is OK.' &!comment
)
500 format('This format is OK.' & !comment
)
Compiling this results in the following:
200 format('This format fails.'&!comment
1
Error: Unexpected element '&' in format string at (1)
gfortran_parse_error.f90:13.32:
300 format('This format fails.'& !comment
1
Error: Unexpected element '&' in format string at (1)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/64506] FORMAT Parse Error with Continuation Line
2015-01-06 5:59 [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line thfanning at gmail dot com
@ 2015-01-09 10:30 ` dominiq at lps dot ens.fr
2015-02-01 20:42 ` burnus at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-01-09 10:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64506
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-01-09
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I see it from 4.8.5 up to trunk (5.0).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/64506] FORMAT Parse Error with Continuation Line
2015-01-06 5:59 [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line thfanning at gmail dot com
2015-01-09 10:30 ` [Bug fortran/64506] " dominiq at lps dot ens.fr
@ 2015-02-01 20:42 ` burnus at gcc dot gnu.org
2015-02-13 16:58 ` jvdelisle at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2015-02-01 20:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64506
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
CC| |burnus at gcc dot gnu.org
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00012.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/64506] FORMAT Parse Error with Continuation Line
2015-01-06 5:59 [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line thfanning at gmail dot com
2015-01-09 10:30 ` [Bug fortran/64506] " dominiq at lps dot ens.fr
2015-02-01 20:42 ` burnus at gcc dot gnu.org
@ 2015-02-13 16:58 ` jvdelisle at gcc dot gnu.org
2015-02-13 17:09 ` jvdelisle at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2015-02-13 16:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64506
--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Fri Feb 13 16:57:28 2015
New Revision: 220687
URL: https://gcc.gnu.org/viewcvs?rev=220687&root=gcc&view=rev
Log:
2015-02-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/64506
* scanner.c (gfc_next_char_literal): For free form source,
check for '!' and if found, clear the comment and go back
and get the next character. For fixed form source, skip the
rest of the line.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/scanner.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/64506] FORMAT Parse Error with Continuation Line
2015-01-06 5:59 [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line thfanning at gmail dot com
` (2 preceding siblings ...)
2015-02-13 16:58 ` jvdelisle at gcc dot gnu.org
@ 2015-02-13 17:09 ` jvdelisle at gcc dot gnu.org
2015-02-17 20:13 ` jvdelisle at gcc dot gnu.org
2015-03-01 2:29 ` jvdelisle at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2015-02-13 17:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64506
--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Fri Feb 13 17:09:04 2015
New Revision: 220688
URL: https://gcc.gnu.org/viewcvs?rev=220688&root=gcc&view=rev
Log:
2015-02-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/64506
* gfortran.dg/continuation_13.f90: New test.
* gfortran.dg/continuation_14.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/continuation_13.f90
trunk/gcc/testsuite/gfortran.dg/continuation_14.f
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/64506] FORMAT Parse Error with Continuation Line
2015-01-06 5:59 [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line thfanning at gmail dot com
` (3 preceding siblings ...)
2015-02-13 17:09 ` jvdelisle at gcc dot gnu.org
@ 2015-02-17 20:13 ` jvdelisle at gcc dot gnu.org
2015-03-01 2:29 ` jvdelisle at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2015-02-17 20:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64506
--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Fixed on trunk, any other cases identified, please let me know. I will hold
this open for a while just in case.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/64506] FORMAT Parse Error with Continuation Line
2015-01-06 5:59 [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line thfanning at gmail dot com
` (4 preceding siblings ...)
2015-02-17 20:13 ` jvdelisle at gcc dot gnu.org
@ 2015-03-01 2:29 ` jvdelisle at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2015-03-01 2:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64506
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
No further issues identified. Closing.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-03-01 2:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06 5:59 [Bug fortran/64506] New: FORMAT Parse Error with Continuation Line thfanning at gmail dot com
2015-01-09 10:30 ` [Bug fortran/64506] " dominiq at lps dot ens.fr
2015-02-01 20:42 ` burnus at gcc dot gnu.org
2015-02-13 16:58 ` jvdelisle at gcc dot gnu.org
2015-02-13 17:09 ` jvdelisle at gcc dot gnu.org
2015-02-17 20:13 ` jvdelisle at gcc dot gnu.org
2015-03-01 2:29 ` jvdelisle at gcc dot gnu.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).