https://gcc.gnu.org/g:7a042a5aaa248d23d05141ea97265b93b0d15e06
commit 7a042a5aaa248d23d05141ea97265b93b0d15e06 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 686b690fc1c3..a454fb75e23f 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