https://gcc.gnu.org/g:039e2254d55e5d53f2766ead3495413b4788e00c
commit r17-1909-g039e2254d55e5d53f2766ead3495413b4788e00c Author: Jerry DeLisle <[email protected]> Date: Thu Jun 25 20:54:48 2026 -0700 fortran: [PR121972] Fix attribute used. PR fortran/121972 gcc/fortran/ChangeLog: * trans-array.cc (has_class_alloc_comp): Change to atte.class_pointer. Diff: --- gcc/fortran/trans-array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc index 75780afccc6b..ebd04c53b9d2 100644 --- a/gcc/fortran/trans-array.cc +++ b/gcc/fortran/trans-array.cc @@ -1976,7 +1976,7 @@ static bool has_class_alloc_comp (gfc_symbol *der) { for (gfc_component *c = der->components; c; c = c->next) - if (c->ts.type == BT_CLASS && !c->attr.pointer) + if (c->ts.type == BT_CLASS && !c->attr.class_pointer) return true; return false; }
