https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69061
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |link-failure
Target| |x86_64-*-darwin
Component|fortran |target
Summary|gfortran not using |Huge (~7GB of them) Static
|appropriate memory space |arrays are not fully usable
|for ( architecture x86_64 |on Darwin
|Darwin ) |
Severity|major |normal
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>real, dimension(1:n,1:n,1:n) :: gamma, CR, PXX, PXY, PXZ, PYX, PYY, PYZ, PZY,
>PZX, PZZ, SX, SY, SZ
With n being 520, these arrays add up to 7.8GB. Way more than +/-4GB.
For Linux you would use -mcmodel=large but I don't know if this works on Mac OS
X.
Maybe you should change it to be dynamically allocated rather than statically
allocated.