https://gcc.gnu.org/g:9b6aae3b8be66ea64b1887aed4ba20cb578fcf2c
commit 9b6aae3b8be66ea64b1887aed4ba20cb578fcf2c Author: Mikael Morin <mik...@gcc.gnu.org> Date: Thu Mar 13 11:08:37 2025 +0100 Correction régression select_type_26.f03 Diff: --- gcc/fortran/trans-types.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/fortran/trans-types.cc b/gcc/fortran/trans-types.cc index 8e6c670461b4..ba5da0a6fd16 100644 --- a/gcc/fortran/trans-types.cc +++ b/gcc/fortran/trans-types.cc @@ -3247,6 +3247,9 @@ gfc_get_derived_type (gfc_symbol * derived, int codimen) GFC_DECL_PTR_ARRAY_P (c->backend_decl) = 1; } + if (derived->attr.is_class) + GFC_CLASS_TYPE_P (typenode) = 1; + /* Now lay out the derived type, including the fields. */ if (canonical) TYPE_CANONICAL (typenode) = canonical;