I'm having a migration problem from CVF to IVF of a project in a quite old and poor-quality Fortran code.
Problem is sometimes, the index during runtime exceeds the size of the array.
subroutine suba (val) !assuming val=20 implicit none integer arr(10), val, i do i=1, val print*, arr(i) !i will have eventually have the value 11... enddo end
Seeing this, CVF would not crash. Wow, I know ! The value printed would be a memory location corresponding at something else than arr, but that's not the point !
Unfortunately for me, IVF does crash everytime it sees this (and so do I). But is there any way (options ?) to make IVF behaving like CVF for this project ?
I'm aware that results can be void, but I just want the project not to crash on such errors.
Thanks a lot for your help