This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/38135] RESHAPE gives wrong result



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]