https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94070
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to Tobias Burnus from comment #0) > Testing shows that assumed-rank arrays are mishandled in several ways Additionally, with assumed-size arrays passed to assumed-rank dummies: both size(x) and size(x,dim=3) use "0" instead of "-1" for the last dimension (and hence: -20 in the first case). – That was the originally found issue by José.