https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109948
--- Comment #13 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #12)
> + && e->symtree->n.sym->assoc->target->ref
> + && e->symtree->n.sym->assoc->target->ref->u.ar.type == AR_FULL
> + && e->symtree->n.sym->assoc->target->ref->u.ar.as)
> + {
> + e->rank = e->symtree->n.sym->assoc->target->ref->u.ar.as->rank;
> + goto done;
> + }
> +
Maybe be just need to follow the refs and join the code with the later part.
