[Bug fortran/50937] STAT option with ALLOCATE statement on large arrays
fwi at inducks dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 31 18:29:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50937
--- Comment #4 from fwi at inducks dot org 2011-10-31 18:29:27 UTC ---
I'm using:
$ gfortran --version
GNU Fortran (Ubuntu 4.4.3-4ubuntu5) 4.4.3
I've now tested the same program on a 64-bit CentOs machine
with 16-Gb RAM, but wasn't able to reproduce the problem there:
$ gfortran --version
GNU Fortran (GCC) 4.1.2
$ for i in `seq -w 10 10 400`; do LANG=C ./a.out $i; done
Sucesfully allocated array of size 10 **4
Sucesfully allocated array of size 20 **4
Sucesfully allocated array of size 30 **4
Sucesfully allocated array of size 40 **4
Sucesfully allocated array of size 50 **4
Sucesfully allocated array of size 60 **4
Sucesfully allocated array of size 70 **4
Sucesfully allocated array of size 80 **4
Sucesfully allocated array of size 90 **4
Sucesfully allocated array of size 100 **4
Sucesfully allocated array of size 110 **4
Sucesfully allocated array of size 120 **4
Sucesfully allocated array of size 130 **4
Sucesfully allocated array of size 140 **4
Sucesfully allocated array of size 150 **4
Sucesfully allocated array of size 160 **4
Sucesfully allocated array of size 170 **4
Sucesfully allocated array of size 180 **4
Sucesfully allocated array of size 190 **4
Sucesfully allocated array of size 200 **4
Sucesfully allocated array of size 210 **4
Could not allocate array of size 220 **4, error code= 1
Could not allocate array of size 230 **4, error code= 1
Could not allocate array of size 240 **4, error code= 1
Could not allocate array of size 250 **4, error code= 1
Could not allocate array of size 260 **4, error code= 1
Could not allocate array of size 270 **4, error code= 1
Could not allocate array of size 280 **4, error code= 1
Could not allocate array of size 290 **4, error code= 1
Could not allocate array of size 300 **4, error code= 1
Could not allocate array of size 310 **4, error code= 1
Could not allocate array of size 320 **4, error code= 1
Could not allocate array of size 330 **4, error code= 1
Could not allocate array of size 340 **4, error code= 1
Could not allocate array of size 350 **4, error code= 1
Could not allocate array of size 360 **4, error code= 1
Could not allocate array of size 370 **4, error code= 1
Could not allocate array of size 380 **4, error code= 1
Could not allocate array of size 390 **4, error code= 1
Could not allocate array of size 400 **4, error code= 1
More information about the Gcc-bugs
mailing list