https://gcc.gnu.org/g:616b9f5c754ae055d3fc1ba60209caa6430cc1fa

commit 616b9f5c754ae055d3fc1ba60209caa6430cc1fa
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 10ddd50bcade..2b407472774c 100644
--- a/gcc/fortran/trans-expr.cc
+++ b/gcc/fortran/trans-expr.cc
@@ -2972,7 +2972,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

Reply via email to