[Bug fortran/20923] gfortran slow for large array constructors

dominiq at lps dot ens dot fr gcc-bugzilla@gcc.gnu.org
Sun Nov 29 22:10:00 GMT 2009



------- Comment #21 from dominiq at lps dot ens dot fr  2009-11-29 22:10 -------
With the patch in comment #20, I get several new failures:

gcc/testsuite/gfortran.dg/actual_array_constructor_3.f90
pr20923 and friends
pr34554        "

IIRC when the constructors are used as initialization or in statements, they
are expanded at compile time when possible if the length is less than 2^16,
otherwise they are computed at run time. I think this behavior should be kept.
The only cases for which the fatal error should be triggered is for PARAMETERS
as in pr19925 that must be computed at compile time.


-- 


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



More information about the Gcc-bugs mailing list