MinGW64 has problems with big static arrays
GCC for 32-bit and 64-bit Windows with a real installer & updater
Brought to you by:
tdragon
Attached a test fortran which has problems with big static arrays.
if Dim3=32, everything is OK.
if Dim3=64, compiler displays several errors invoking original sources in C:/crossdev/... Not very clear (references as in ticket 234) but this is not the main problem. The error is apparently because even on a 64 bits compiler (even when forcing 8 bytes integers at compile time with -fdefault-integer-8) indexes in Big_Array1 are still computed in 32 bits, and this happens only in the static array Big_Array1. If you comment lines containing the reference to Big_Array1 (lines 8, 11 to 14) and keep only the allocatable version (Big_Array2), indexes are correctly computed and used.
gd_on
Anonymous
Still a problem with TDM 64 4.9.2. Not the same messages, but finally does not compile if Dim3=64 in the test case.
Hi,
I have posted a similar request on MinGW64 official site (http://sourceforge.net/p/mingw-w64/bugs/447/), because I think that it's not a TDM specific bug.
gd_on