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

            Bug ID: 99205
           Summary: [10/11 Regression] Out of memory with undefined
                    character length
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

This changed between 20190728 and 20190811 :


$ cat z1.f90
program p
   character(l) :: c(2)
   data c /'a', 'b'/
   common c
end


$ gfortran-11-20210221 -c z1.f90
z1.f90:2:13:

    2 |    character(l) :: c(2)
      |             1
Error: Variable 'l' cannot appear in the expression at (1)
z1.f90:2:23:

    2 |    character(l) :: c(2)
      |                       1
Error: 'c' at (1) must have constant character length in this context

f951: out of memory allocating 137707388940 bytes after a total of 458752 bytes

Reply via email to