public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39811] New: Bogus warning for valid continuation lines
@ 2009-04-18 22:19 burnus at gcc dot gnu dot org
2009-04-18 22:32 ` [Bug fortran/39811] " burnus at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-04-18 22:19 UTC (permalink / raw)
To: gcc-bugs
Found in
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/58d772090de9d1f4
Test case by Dick Hendrickson, gfortran tested by Ron Shepard.
The executable is OK, but gfortran prints a bogus warning:
Warning: '&' not allowed by itself in line 2
(The run-time result is:
Print rather a lot of ampersands &&&&&&&&&&&
)
PRINT *, 'Print rather a lot of ampersands &&&&&
&&&&&
&&&&&'
end
--
Summary: Bogus warning for valid continuation lines
Product: gcc
Version: 4.5.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=39811
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/39811] Bogus warning for valid continuation lines
2009-04-18 22:19 [Bug fortran/39811] New: Bogus warning for valid continuation lines burnus at gcc dot gnu dot org
@ 2009-04-18 22:32 ` burnus at gcc dot gnu dot org
2009-04-20 21:48 ` burnus at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-04-18 22:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2009-04-18 22:32 -------
Patch (not regtested):
Index: scanner.c
===================================================================
--- scanner.c (revision 146331)
+++ scanner.c (working copy)
@@ -1404,7 +1404,10 @@
if (c == '&')
{
if (seen_ampersand)
- seen_ampersand = 0;
+ {
+ seen_ampersand = 0;
+ seen_printable = 1;
+ }
else
seen_ampersand = 1;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39811
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/39811] Bogus warning for valid continuation lines
2009-04-18 22:19 [Bug fortran/39811] New: Bogus warning for valid continuation lines burnus at gcc dot gnu dot org
2009-04-18 22:32 ` [Bug fortran/39811] " burnus at gcc dot gnu dot org
@ 2009-04-20 21:48 ` burnus at gcc dot gnu dot org
2009-04-20 22:19 ` burnus at gcc dot gnu dot org
2009-04-20 22:21 ` burnus at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-04-20 21:48 UTC (permalink / raw)
To: gcc-bugs
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-04-20 21:48:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39811
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/39811] Bogus warning for valid continuation lines
2009-04-18 22:19 [Bug fortran/39811] New: Bogus warning for valid continuation lines burnus at gcc dot gnu dot org
2009-04-18 22:32 ` [Bug fortran/39811] " burnus at gcc dot gnu dot org
2009-04-20 21:48 ` burnus at gcc dot gnu dot org
@ 2009-04-20 22:19 ` burnus at gcc dot gnu dot org
2009-04-20 22:21 ` burnus at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-04-20 22:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2009-04-20 22:19 -------
Subject: Bug 39811
Author: burnus
Date: Mon Apr 20 22:19:25 2009
New Revision: 146460
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146460
Log:
2009-04-20 Tobias Burnus <burnus@net-b.de>
PR fortran/39811
* scanner.c (load_line): Fix bogus "&" compile-time diagnostic.
2009-04-20 Tobias Burnus <burnus@net-b.de>
PR fortran/39811
* gfortran.dg/continuation_11.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/continuation_11.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/scanner.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39811
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/39811] Bogus warning for valid continuation lines
2009-04-18 22:19 [Bug fortran/39811] New: Bogus warning for valid continuation lines burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-04-20 22:19 ` burnus at gcc dot gnu dot org
@ 2009-04-20 22:21 ` burnus at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-04-20 22:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from burnus at gcc dot gnu dot org 2009-04-20 22:21 -------
FIXED on the trunk (4.5).
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39811
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-04-20 22:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-18 22:19 [Bug fortran/39811] New: Bogus warning for valid continuation lines burnus at gcc dot gnu dot org
2009-04-18 22:32 ` [Bug fortran/39811] " burnus at gcc dot gnu dot org
2009-04-20 21:48 ` burnus at gcc dot gnu dot org
2009-04-20 22:19 ` burnus at gcc dot gnu dot org
2009-04-20 22:21 ` burnus 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).