re PR fortran/42999 (bogus error: Parameter 'i' at (1) has not been declared or is a variable, which does not reduce to a constant expression)
2010-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/42999 * array.c (gfc_constant_ac): Do not prevent expansion of constructors with iterators. From-SVN: r156642
This commit is contained in:
parent
b09495c1a6
commit
db9633ec5c
@ -1,3 +1,9 @@
|
||||
2010-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/42999
|
||||
* array.c (gfc_constant_ac): Do not prevent expansion of constructors
|
||||
with iterators.
|
||||
|
||||
2010-02-09 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* module.c (fix_mio_expr): Declare sym.
|
||||
|
@ -1522,8 +1522,7 @@ gfc_constant_ac (gfc_expr *e)
|
||||
rc = SUCCESS;
|
||||
|
||||
if (e->value.constructor
|
||||
&& e->value.constructor->expr->expr_type == EXPR_ARRAY
|
||||
&& !e->value.constructor->iterator)
|
||||
&& e->value.constructor->expr->expr_type == EXPR_ARRAY)
|
||||
{
|
||||
/* Expand the constructor. */
|
||||
iter_stack = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user