From: Mikael Morin Date: Fri, 4 Nov 2011 00:12:54 +0000 (+0000) Subject: array.c (match_subscript): Skip whitespaces before setting locus. X-Git-Tag: releases/gcc-4.7.0~2527 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00b9bf8b7def3842e0c41376887aa41a9cec5bc0;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 86551b71b8a7..ed6a4dfe2671 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2011-11-04 Mikael Morin + + * array.c (match_subscript): Skip whitespaces before setting locus. + * matchexp.c (match_level_1): Ditto. + 2011-11-04 Mikael Morin * trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Set loop's diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c index 3e6b9d2591c5..a1449fd8c9e2 100644 --- a/gcc/fortran/array.c +++ b/gcc/fortran/array.c @@ -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; diff --git a/gcc/fortran/matchexp.c b/gcc/fortran/matchexp.c index 8b99ce986920..cd70dc0f7584 100644 --- a/gcc/fortran/matchexp.c +++ b/gcc/fortran/matchexp.c @@ -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);