This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34659] [4.3 Regression] corner case continuation line



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]