[Bug fortran/28105] Check for memory allocations bigger than size_t

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sat Jun 22 13:55:00 GMT 2013


Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Since gfortran 4.8.1 up to trunk I get

pr28105.f90:1:0: error: size of variable 'm' is too large
    real(4), dimension(1025*1024*1024) :: m

when compiling 

   real(4), dimension(1025*1024*1024) :: m
   m = 0.
   print *, m(1025*1024*1024)

with -m32. Revision 187017 (2012-05-01) does not give any error, but revision
187060 (2012-05-02) does. Closing as FIXED. Please reopen if I am wrong.

More information about the Gcc-bugs mailing list