------- Comment #16 from jvdelisle at gcc dot gnu dot org  2009-11-17 05:35 
-------
I propose fixing this at gfc_consant_ac which has the following comment:

/* Given an array constructor, determine if the constructor is
   constant or not by expanding it and making sure that all elements
   are constants.  This is a bit of a hack since something like (/ (i,
   i=1,100000000) /) will take a while as* opposed to a more clever
   function that traverses the expression tree. FIXME.  */

We should just be able to traverse the expression tree.  I have manually done
so with a few test cases and one does indeed end up with a BT_CONSTANT.  I will
see what I can come up with.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41807

Reply via email to