[Bug fortran/19925] Implied do-loop in an initialization expression is broken

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Mon Oct 29 15:00:00 GMT 2007



------- Comment #10 from jv244 at cam dot ac dot uk  2007-10-29 14:59 -------
Since this is the oldest F95-only bug in gfortran, I had a look if it still
exists. I'm not quite sure it does (at in the same form).

This

INTEGER, PARAMETER :: N=100000
INTEGER, PARAMETER :: I(N)=(/(MOD(K,2),K=1,N)/)
END

now compiles. However:

INTEGER, PARAMETER :: N=100000
INTEGER, PARAMETER :: I(N)=(/(MOD(K,2),K=1,N)/)
INTEGER, PARAMETER :: M(N)=I(N:1:-1)
END

causes an ICE


-- 


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



More information about the Gcc-bugs mailing list