re PR fortran/67429 (Missing part of error messages.)

2015-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR fortran/67429
	* error.c (gfc_clear_pp_buffer): Reset last_location, otherwise
	caret lines might be skipped when actually giving a diagnostic.

From-SVN: r227500
This commit is contained in:
Manuel López-Ibáñez 2015-09-04 18:37:50 +00:00 committed by Paul Thomas
parent 547fba7e1f
commit 63019f0c1a
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2015-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/67429
* error.c (gfc_clear_pp_buffer): Reset last_location, otherwise
caret lines might be skipped when actually giving a diagnostic.
2015-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/54833

View File

@ -757,6 +757,9 @@ gfc_clear_pp_buffer (output_buffer *this_buffer)
pp->buffer = this_buffer;
pp_clear_output_area (pp);
pp->buffer = tmp_buffer;
/* We need to reset last_location, otherwise we may skip caret lines
when we actually give a diagnostic. */
global_dc->last_location = UNKNOWN_LOCATION;
}