]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
array.c (match_subscript): Skip whitespaces before setting locus.
authorMikael Morin <mikael@gcc.gnu.org>
Fri, 4 Nov 2011 00:12:54 +0000 (00:12 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Fri, 4 Nov 2011 00:12:54 +0000 (00:12 +0000)
* array.c (match_subscript): Skip whitespaces before setting locus.
* matchexp.c (match_level_1): Ditto.

From-SVN: r180910

gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/matchexp.c

index 86551b71b8a73f55c0eea2d813244000c1120da2..ed6a4dfe2671ced09001b186ff874ebaf6aa8782 100644 (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
index 3e6b9d2591c5c71c025898d1b481fa3e3471788e..a1449fd8c9e26631f03458eea14a72578b7ff2b9 100644 (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;
 
index 8b99ce986920a53de13ca5531400fbfb4309bb7d..cd70dc0f7584978bb9eae350fe0e6351ad037d67 100644 (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);