summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Morin <mikael@gcc.gnu.org>2011-10-18 15:08:08 +0000
committerMikael Morin <mikael@gcc.gnu.org>2011-10-18 15:08:08 +0000
commitdb171167f41ced8d3b161a8072a809176b586165 (patch)
tree084328c4b46c739f98f59bde2e6941be7819ad1f
parent66b23e9399d1c49181218a444efdbabea15d4308 (diff)
downloadgcc-db171167f41ced8d3b161a8072a809176b586165.tar.gz
array.c (gfc_find_array_ref): Remove coarray-specific handling.
* array.c (gfc_find_array_ref): Remove coarray-specific handling. From-SVN: r180149
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/array.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 57522e76aeb..18e209f63be 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,5 +1,9 @@
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
* check.c (dim_corank_check): Use gfc_get_corank to get corank.
diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c
index aa9cc0c3ab3..3e6b9d2591c 100644
--- a/gcc/fortran/array.c
+++ b/gcc/fortran/array.c
@@ -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)