https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102459
--- Comment #7 from Christopher Albert <albert at tugraz dot at> --- Created attachment 63875 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63875&action=edit Proposed patch: fix depend-iterator lowering for component arrays The front end chose between scalar and array lowering based on the first REF_ARRAY type, but for expressions like x(j)%a the first ref is the scalar element x(j) while the full expression is still rank-1. This patch switches to using the overall expression rank instead. Regtested on x86_64-pc-linux-gnu.
