https://gcc.gnu.org/g:dac9fed9c0619dd515a1a907e1e6e4f8c285ca4d
commit dac9fed9c0619dd515a1a907e1e6e4f8c285ca4d 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 104444bed547..28bed373f9de 100644 --- a/gcc/fortran/trans-expr.cc +++ b/gcc/fortran/trans-expr.cc @@ -2993,7 +2993,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