https://gcc.gnu.org/g:870bdadd0e44cabafd061ea53f6d4e73c16124f4
commit 870bdadd0e44cabafd061ea53f6d4e73c16124f4 Author: Mikael Morin <mik...@gcc.gnu.org> Date: Wed Mar 12 19:04:10 2025 +0100 Correction régression class_array_9.f03 Diff: --- gcc/fortran/trans-expr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fortran/trans-expr.cc b/gcc/fortran/trans-expr.cc index d6da6139bcdf..b0f904c3a156 100644 --- a/gcc/fortran/trans-expr.cc +++ b/gcc/fortran/trans-expr.cc @@ -2964,7 +2964,7 @@ gfc_conv_component_ref (gfc_se * se, gfc_ref * ref) field = f2; } - if (ref->u.c.sym && ref->u.c.sym->ts.type == BT_CLASS + if (ref->u.c.sym && ref->u.c.sym->attr.is_class && strcmp ("_data", c->name) == 0) { /* Found a ref to the _data component. Store the associated ref to