Commit 31909d9f by Steven Bosscher Committed by François-Xavier Coudert

re PR fortran/27378 ([4.1 only] ICE on unexpected ELSE statement)

	PR fortran/27378
	* parse.c (next_statement): Add check to avoid an ICE when
	gfc_current_locus.lb is not set.

From-SVN: r113603
parent d0bd09f6
2006-05-07 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/27378
* parse.c (next_statement): Add check to avoid an ICE when
gfc_current_locus.lb is not set.
2006-05-07 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> 2006-05-07 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/27457 PR fortran/27457
......
...@@ -624,6 +624,7 @@ next_statement (void) ...@@ -624,6 +624,7 @@ next_statement (void)
if (gfc_at_eol ()) if (gfc_at_eol ())
{ {
if (gfc_option.warn_line_truncation if (gfc_option.warn_line_truncation
&& gfc_current_locus.lb
&& gfc_current_locus.lb->truncated) && gfc_current_locus.lb->truncated)
gfc_warning_now ("Line truncated at %C"); gfc_warning_now ("Line truncated at %C");
......
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