The arguments to gfc_build_array_ref were recently updated in the commit
'fortran: Use pointer arithmetic to index arrays [PR102043]', but a call
from gfc_conv_array_ref used the old function signature. This went
unnoticed due to the use of default arguments.
This patch should be merged into 'Fortran: delinearize multi-dimensional
array accesses'.
2022-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
gcc/fortran/
* trans-array.cc (gfc_conv_array_ref): Update arguments to
gfc_build_array_ref.
+2022-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * trans-array.cc (gfc_conv_array_ref): Update arguments to
+ gfc_build_array_ref.
+
2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
Backport from mainline:
gfc_array_index_type, offset, cst_offset);
se->class_vptr = vptr;
vptr = get_class_array_vptr (se->expr, vptr);
- se->expr = gfc_build_array_ref (base, offset, cooked_decl, vptr);
+ se->expr = gfc_build_array_ref (base, offset, cooked_decl, false, vptr);
}
- else
- /* Return the outermost ARRAY_REF we already built. */
- se->expr = aref;
+ else
+ /* Return the outermost ARRAY_REF we already built. */
+ se->expr = aref;
}