The following code fragment prints the value of k twice. The result should be that K=1, then K=0.
However, if the default integer type is set to 2, the results show 1 and 441344.
If you compile this for RELEASE with the same options, the error does not occur.
If I change the type of 'k' to INTEGER or INTEGER*2, the code will work as it should.
character*1 ft_returned(1000000)
integer*4 q,p,rows,cols,k
do k=1,1000000
ft_returned(k) = char(k)
end do
rows=7
cols=15
do p=0,rows-1
do q=0,cols-1
k = ichar(ft_returned((q)+(p*cols)+1))
print *,k
k = k / 64
print *,k
pause
end do
end do
stop
end