[Bug fortran/102459] [13/14/15/16 Regression] ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.c:3549 since r12-1108-g9a5de4d5af1c10a8
albert at tugraz dot at
gcc-bugzilla@gcc.gnu.org
Tue Mar 10 22:27:18 GMT 2026
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.
More information about the Gcc-bugs
mailing list