https://gcc.gnu.org/g:f58da0501fdb4a7c01510c89bdd725d7d0c805ce
commit f58da0501fdb4a7c01510c89bdd725d7d0c805ce Author: Mikael Morin <[email protected]> Date: Mon Nov 23 16:37:22 2026 +0100 Correction partiell régression pr87992.f90 Diff: --- gcc/fortran/class.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/fortran/class.cc b/gcc/fortran/class.cc index ccd899abd763..e95d818fe507 100644 --- a/gcc/fortran/class.cc +++ b/gcc/fortran/class.cc @@ -2503,7 +2503,8 @@ gfc_find_derived_vtab (gfc_symbol *derived) gfc_gsymbol *gsym = NULL; gfc_symbol *dealloc = NULL, *arg = NULL; - if (derived->attr.pdt_template) + if (derived->attr.pdt_template + || derived->attr.unlimited_polymorphic) return NULL; /* Find the top-level namespace, stopping at module/submodule boundaries. @@ -2517,7 +2518,7 @@ gfc_find_derived_vtab (gfc_symbol *derived) break; /* If the type is a class container, use the underlying derived type. */ - if (!derived->attr.unlimited_polymorphic && derived->attr.is_class) + if (derived->attr.is_class) derived = gfc_get_derived_super_type (derived); if (!derived)
