diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-10-10 13:38:38 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-10-10 13:38:38 +0000 |
commit | 28ec36ea31db0ed21b4e076fb82f45d15feabfd5 (patch) | |
tree | 5c36d88b5d7389f2868c0c91c284d53b1c667f3d /gcc/fortran/expr.c | |
parent | e7c61201aa4afa48bb93950f7a75cb807912f3c1 (diff) | |
download | gcc-28ec36ea31db0ed21b4e076fb82f45d15feabfd5.zip gcc-28ec36ea31db0ed21b4e076fb82f45d15feabfd5.tar.gz gcc-28ec36ea31db0ed21b4e076fb82f45d15feabfd5.tar.bz2 |
re PR fortran/33636 (Rejects valid use of vector subscript in derived type parameter)
PR fortran/33636
* expr.c (find_array_section): Check for constructor constantness.
From-SVN: r129208
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; |