https://gcc.gnu.org/g:c0d838ccb356c69e86013cc9cb68139945f15fcc
commit c0d838ccb356c69e86013cc9cb68139945f15fcc Author: Mikael Morin <mik...@gcc.gnu.org> Date: Thu Apr 3 21:11:20 2025 +0200 Correction ICE aliasing_dummy_4.f90 Diff: --- gcc/fortran/trans-stmt.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/fortran/trans-stmt.cc b/gcc/fortran/trans-stmt.cc index bb8b3443d7ea..c31602e0fed6 100644 --- a/gcc/fortran/trans-stmt.cc +++ b/gcc/fortran/trans-stmt.cc @@ -4372,7 +4372,7 @@ generate_loop_for_temp_to_lhs (gfc_expr *expr, tree tmp1, tree count3, gfc_conv_expr (&lse, expr); /* Form the expression of the temporary. */ - rse.expr = gfc_build_array_ref (tmp1, count1, NULL); + rse.expr = gfc_build_array_ref (tmp1, count1, true); } /* Use the scalar assignment. */ @@ -4478,7 +4478,7 @@ generate_loop_for_rhs_to_temp (gfc_expr *expr2, tree tmp1, tree count3, gfc_conv_expr (&rse, expr2); /* Form the expression of the temporary. */ - lse.expr = gfc_build_array_ref (tmp1, count1, NULL); + lse.expr = gfc_build_array_ref (tmp1, count1, true); } /* Use the scalar assignment. */