]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
array.c (gfc_find_array_ref): Remove coarray-specific handling.
authorMikael Morin <mikael@gcc.gnu.org>
Tue, 18 Oct 2011 15:08:08 +0000 (15:08 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Tue, 18 Oct 2011 15:08:08 +0000 (15:08 +0000)
* array.c (gfc_find_array_ref): Remove coarray-specific handling.

From-SVN: r180149

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

index 57522e76aeb7a164e73f1b41554b343919fe3667..18e209f63be0fc9f90316568bf9016daaf1506e4 100644 (file)
@@ -1,3 +1,7 @@
+2011-10-18  Mikael Morin  <mikael@gcc.gnu.org>
+
+       * array.c (gfc_find_array_ref): Remove coarray-specific handling.
+
 2011-10-18  Mikael Morin  <mikael@gcc.gnu.org>
 
        PR fortran/50420
index aa9cc0c3ab39caee778d5422a97b765225cf7c62..3e6b9d2591c5c71c025898d1b481fa3e3471788e 100644 (file)
@@ -2296,8 +2296,7 @@ gfc_find_array_ref (gfc_expr *e)
 
   for (ref = e->ref; ref; ref = ref->next)
     if (ref->type == REF_ARRAY
-       && (ref->u.ar.type == AR_FULL || ref->u.ar.type == AR_SECTION
-           || (ref->u.ar.type == AR_ELEMENT && ref->u.ar.dimen == 0)))
+       && (ref->u.ar.type == AR_FULL || ref->u.ar.type == AR_SECTION))
       break;
 
   if (ref == NULL)