Commit 0267ffdc by Jerry DeLisle

re PR fortran/30779 ([4.1, 4.2 only] incomplete file triggers ICE)

2007-02-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/30779
	* scanner.c (gfc_next_char_literal): Add check for end of file after
	call to advance_line.

From-SVN: r121982
parent f4f81a66
2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/30779
* scanner.c (gfc_next_char_literal): Add check for end of file after
call to advance_line.
2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org> 2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/30799 PR fortran/30799
......
...@@ -704,6 +704,9 @@ restart: ...@@ -704,6 +704,9 @@ restart:
skip_comment_line (); skip_comment_line ();
else else
gfc_advance_line (); gfc_advance_line ();
if (gfc_at_eof())
goto not_continuation;
/* We've got a continuation line. If we are on the very next line after /* We've got a continuation line. If we are on the very next line after
the last continuation, increment the continuation line count and the last continuation, increment the continuation line count and
......
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