Hello,
I am working on Intel Visual Fortran 11.1 and have a question on declaring an array in a subroutine by defining the size of the array using an argument. The argument can vary each time the subroutine is called, and the compiler does not provide an error, nor a warning.
program main call suppre(5) call suppre(6) stop end subroutine suppre(ivar) integer ivar real, dimension(ivar) :: array end subroutine
My question: What are the drawbacks of this practice?