Array inside type array as function argument
问题 I have the following program at hand program foo type bar real, dimension(2) :: vector end type type(bar), dimension(3) :: bararray call doSomething(bararray%vector) end program subroutine doSomething(v) real, dimension(3,2), intent(inout) :: v ... end subroutine Now this gives me a compilation error. Error: Two or more part references with nonzero rank must not be specified at (1) If I change the call to call doSomething((/bararray%vector(1), bararray%vector(2)/)) everything works out nicely