This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47267] New: array constructor causing long compile times
- From: "Joost.VandeVondele at pci dot uzh.ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Jan 2011 09:40:10 +0000
- Subject: [Bug fortran/47267] New: array constructor causing long compile times
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: Joost.VandeVondele@pci.uzh.ch
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.