diff options
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index 2bf980c..1f51fd0 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -1363,6 +1363,8 @@ simplify_parameter_variable (gfc_expr * p, int type) if (e == NULL) return FAILURE; + e->rank = p->rank; + /* Do not copy subobject refs for constant. */ if (e->expr_type != EXPR_CONSTANT && p->ref != NULL) e->ref = copy_ref (p->ref); |