array.c (match_subscript): Skip whitespaces before setting locus.

* array.c (match_subscript): Skip whitespaces before setting locus.
	* matchexp.c (match_level_1): Ditto.

From-SVN: r180910
This commit is contained in:
Mikael Morin 2011-11-04 00:12:54 +00:00
parent aa6ad95c05
commit 00b9bf8b7d
3 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-11-04 Mikael Morin <mikael@gcc.gnu.org>
* array.c (match_subscript): Skip whitespaces before setting locus.
* matchexp.c (match_level_1): Ditto.
2011-11-04 Mikael Morin <mikael@gcc.gnu.org>
* trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Set loop's

View File

@ -70,6 +70,7 @@ match_subscript (gfc_array_ref *ar, int init, bool match_star)
i = ar->dimen + ar->codimen;
gfc_gobble_whitespace ();
ar->c_where[i] = gfc_current_locus;
ar->start[i] = ar->end[i] = ar->stride[i] = NULL;

View File

@ -201,6 +201,7 @@ match_level_1 (gfc_expr **result)
locus where;
match m;
gfc_gobble_whitespace ();
where = gfc_current_locus;
uop = NULL;
m = match_defined_operator (&uop);