This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/47267] New: array constructor causing long compile times


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]