Menu

#235 MinGW64 has problems with big static arrays

None
open
nobody
None
1
2014-12-18
2014-10-22
Anonymous
No

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

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2014-12-15

    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.

     
  • Anonymous

    Anonymous - 2014-12-18

    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

     

Anonymous
Anonymous

Add attachments
Cancel