Then my question is: why is dimension(*)
rank 1? I thought it matches any rank, as in the first example. That was also the answer here: Difference between assumed-size and assumed-shape arrays? - #6 by FedericoPerini
8.5.8.5 Assumed-size array says “The rank and extents may differ for the effective and dummy arguments”.