Commit bd5db9de by Jerry DeLisle

re PR fortran/34659 (corner case continuation line)

2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34659
	* scanner.c (load_line): Do not count ' ' as printable when checking for
	continuations.

From-SVN: r131371
parent d6b66aff
2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/34659
* scanner.c (load_line): Do not count ' ' as printable when checking for
continuations.
2008-01-06 Paul Thomas <pault@gcc.gnu.org> 2008-01-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34545 PR fortran/34545
......
...@@ -1176,7 +1176,7 @@ load_line (FILE *input, char **pbuf, int *pbuflen) ...@@ -1176,7 +1176,7 @@ load_line (FILE *input, char **pbuf, int *pbuflen)
seen_ampersand = 1; seen_ampersand = 1;
} }
if ((c != '&' && c != '!') || (c == '!' && !seen_ampersand)) if ((c != '&' && c != '!' && c != ' ') || (c == '!' && !seen_ampersand))
seen_printable = 1; seen_printable = 1;
/* Is this a fixed-form comment? */ /* Is this a fixed-form comment? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment