From c0636171dba6e1d76e6ab328182797d370f0ec91 Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Fri, 28 Sep 2001 06:21:55 +0000 Subject: [PATCH] expr.c (ffeexpr_sym_rhs_dimlist_): Allow array elements as bounds of adjustable arrays. 2001-09-28 Robert Anderson * expr.c (ffeexpr_sym_rhs_dimlist_): Allow array elements as bounds of adjustable arrays. From-SVN: r45854 --- gcc/f/ChangeLog | 5 +++++ gcc/f/expr.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index df0595c8440..dbeab8fe524 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,8 @@ +2001-09-28 Robert Anderson + + * expr.c (ffeexpr_sym_rhs_dimlist_): Allow array elements + as bounds of adjustable arrays. + Thu Sep 20 15:05:20 JST 2001 George Helffrich * com.c (ffecom_subscript_check_): Loosen subscript checking rules diff --git a/gcc/f/expr.c b/gcc/f/expr.c index 2a46a9dbddb..d8730180a04 100644 --- a/gcc/f/expr.c +++ b/gcc/f/expr.c @@ -1,5 +1,5 @@ /* expr.c -- Implementation File (module.c template V1.0) - Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998, 2001 Free Software Foundation, Inc. Contributed by James Craig Burley. This file is part of GNU Fortran. @@ -17323,6 +17323,7 @@ ffeexpr_sym_rhs_dimlist_ (ffesymbol s, ffelexToken t) | FFESYMBOL_attrsINIT | FFESYMBOL_attrsNAMELIST | FFESYMBOL_attrsSFARG + | FFESYMBOL_attrsARRAY | FFESYMBOL_attrsTYPE))) na = sa | FFESYMBOL_attrsADJUSTS; else @@ -17958,6 +17959,7 @@ ffeexpr_declare_parenthesized_ (ffelexToken t, bool maybe_intrin, case FFEEXPR_contextDIMLIST: s = ffeexpr_sym_rhs_dimlist_ (s, t); + bad = FALSE; break; case FFEEXPR_contextCHARACTERSIZE: