I have a module with the following definitions in it:
REAL(8) X_D(MAXB/8)
CHARACTER(MAXB) X_C
where MAXB is 80000
When HEAP is not specified, all works fine. If I specify HEAP with any value, I get an access violation with the statement
X_D=TRANSFER(X_C,0D0,NV)
where NV is 1 (or anything, I presume).
In debug I can see X_D and X_C.
What can cause this? I've tried HEAP 0, 10, 80, 100, 200 all with same results.
Why does it affect data defined in a module?
Using Intel(R) Visual Fortran Composer XE 2011 Update 7