https://gcc.gnu.org/g:84b20be03139ef53b30dfc663263a6516fc76c08
commit 84b20be03139ef53b30dfc663263a6516fc76c08 Author: Mikael Morin <mik...@gcc.gnu.org> Date: Wed Apr 30 13:46:50 2025 +0200 Correction régression array_temporaries_3 Diff: --- gcc/fortran/trans-array.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc index d9cf89cb4ebc..6d306a522953 100644 --- a/gcc/fortran/trans-array.cc +++ b/gcc/fortran/trans-array.cc @@ -2826,7 +2826,8 @@ gfc_add_loop_ss_code (gfc_loopinfo * loop, gfc_ss * ss, bool subscript, && ss_info->expr->ts.type != BT_CLASS) { tree type = gfc_typenode_for_spec (&ss_info->expr->ts); - if (TYPE_SIZE_UNIT (type) == NULL_TREE) + if (TYPE_SIZE_UNIT (type) == NULL_TREE + || !INTEGER_CST_P (TYPE_SIZE_UNIT (type))) { for (n = 0; n < ss_info->expr->rank; n++) {