Commit db9633ec by Jerry DeLisle

re PR fortran/42999 (bogus error: Parameter 'i' at (1) has not been declared or…

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
parent b09495c1
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment