This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34659] [4.3 Regression] corner case continuation line
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2008 23:11:25 -0000
- Subject: [Bug fortran/34659] [4.3 Regression] corner case continuation line
- References: <bug-34659-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-01-06 23:11 -------
This trivial patch fixes this:
Index: scanner.c
===================================================================
--- scanner.c (revision 131355)
+++ scanner.c (working copy)
@@ -1176,7 +1176,7 @@ load_line (FILE *input, char **pbuf, int
seen_ampersand = 1;
}
- if ((c != '&' && c != '!') || (c == '!' && !seen_ampersand))
+ if ((c != '&' && c != '!' && c != ' ') || (c == '!' && !seen_ampersand))
seen_printable = 1;
/* Is this a fixed-form comment? */
I will commit as such and add a test case. I may refine on this a bit. :)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34659