Consider the following code, which is in error on Line-6 since the variable on the left and the expression on the right have different shapes.
program nph
implicit none
integer i,ijk,ia(1),ja(5)
!
ia = 123
ja = ia ! Error, array shapes do not match
write(*,'(5i12)')ja
end
With /checkmate, 32-bit FTN95 V8.4 runs with no error messages and outputs
123 123 123 123 123
The 64-bit compiler, with /checkmate, causes a run time error but the error is reported as the use of an undefined variable. Gfortran issues a clear error message at compile time:
Error: Different shape for array assignment at (1) on dimension 1 (5 and 1)