Correct program?

@Arjen this is a common gotcha in Fortran, see When is "n" in explicit-shape array A(n) implicitly typed, which discusses this at length with examples what is and what is not allowed and how exactly it works.

1 Like