diff options
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index 151b465..16dc2b1 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -1165,7 +1165,7 @@ find_array_section (gfc_expr *expr, gfc_ref *ref) { gcc_assert (begin); - if (begin->expr_type != EXPR_ARRAY) + if (begin->expr_type != EXPR_ARRAY || !gfc_is_constant_expr (begin)) { t = FAILURE; goto cleanup; |