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:
Jerry DeLisle 2010-02-10 03:31:02 +00:00
parent b09495c1a6
commit db9633ec5c
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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;