[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
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 11 21:04:21 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102459
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu.org
--- Comment #8 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Christopher Albert from comment #7)
> Created attachment 63875 [details]
> 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.
I have confirmed this one and will prepare the commit.
More information about the Gcc-bugs
mailing list