I'm using ftn95 express with visual studio 2008. After testing with some previous code which compiles and runs fine with the intel compiler, i'm getting strange behaviour with the ftn95 when using debug.
The array in sub_B has undefined entries, even after being zero'd. (I'm inserting a breakpoint and putting a 'watch' on the array). Consequently any opperation i do using the array causes the debugger to abort (when \check is on). This goes away if i use allocatable or use a parameter for the array size. Is this just me doing something stupid...?
ive included the simplist example i can think of:
PROGRAM MAIN
INTEGER M
M=140
CALL sub_a(M)
END PROGRAM MAIN
SUBROUTINE SUB_A(M)
INTEGER, INTENT(in)::M
REAL,DIMENSION(M,2)::ARRAY
ARRAY=0.
END SUBROUTINE SUB_A