------- Comment #5 from mikael at gcc dot gnu dot org 2008-11-16 13:45 -------
Index: simplify.c
===================================================================
--- simplify.c (révision 141833)
+++ simplify.c (copie de travail)
@@ -3410,9 +3410,6 @@ is_constant_array_expr (gfc_expr *e)
if (e->expr_type != EXPR_ARRAY || !gfc_is_constant_expr (e))
return false;
- if (e->value.constructor == NULL)
- return false;
-
for (c = e->value.constructor; c; c = c->next)
if (c->expr->expr_type != EXPR_CONSTANT)
return false;
This solves (1) (the original testcase), but not (2).
I will regtest it.
for (2), I'm puzzled. :(
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135