I do not understand why this code does not produce any segmentation fault. I was expecting some errors while compiling the code or in run-time, but it runs apparently correctly.
program alloc
implicit none
real, dimension(:,:), allocatable :: myVec
allocate(myVec(3,2))
myVec=1.
myVec(100,3)=10.
write(*,*) myVec(1,1)
return
end
Could somebody shed some light on this behaviour?