I have the following program
module test contains subroutine foo() integer, allocatable :: a(:) allocate(a(-5:5)) call bar(a) prin
How can I instruct the compiler that, within the bar routine, the numbering of the a array must be the same as in the caller ?
Not sure but according to the standard you can specify the lower bound for an assumed-shape array.
subroutine bar(a) integer, intent(out) :: a(-5:)