http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47267
Summary: array constructor causing long compile times
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
The following program needs about 40s to compile (-O0):
> cat test.f90
IMPLICIT NONE
INTEGER, PARAMETER :: wp=8
INTEGER, PARAMETER :: Niter=30000000
INTEGER, ALLOCATABLE, DIMENSION(:) :: perm1
INTEGER :: i
ALLOCATE(perm1(Niter))
perm1=(/(i,i=1,Niter)/)
END
Time grows linearly with Niter.