https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83183

            Bug ID: 83183
           Summary: Out of memory with option -finit-derived
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

With ./gcc/testsuite/gfortran.dg/move_alloc_17.f90 or this reduction :

$ cat z1.f90
program p
  type :: linked_list
     type(linked_list), allocatable :: link
     integer :: value
  end type
  type(linked_list) :: test
  allocate(test % link)
end program


$ gfortran-8-20171126 -c z1.f90
$
$ ulimit -v 4000000  # optional
$
$ gfortran-8-20171126 -c z1.f90 -finit-derived
f951: out of memory allocating 80 bytes after a total of 3240341504 bytes

Reply via email to