https://gcc.gnu.org/g:35c293fb57e717723831b43961df43a4c8771b82
commit 35c293fb57e717723831b43961df43a4c8771b82 Author: Mikael Morin <mik...@gcc.gnu.org> Date: Fri May 30 19:40:58 2025 +0200 Correction régression associated_target_6 Diff: --- gcc/fortran/trans-types.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/fortran/trans-types.cc b/gcc/fortran/trans-types.cc index 8f3f84ef6fd2..4cb1dbca3d48 100644 --- a/gcc/fortran/trans-types.cc +++ b/gcc/fortran/trans-types.cc @@ -3228,7 +3228,8 @@ gfc_get_derived_type (gfc_symbol * derived, int codimen) do_loop = false; for (c = derived->components, i = 0; c; c = c->next, i++) { - if (c->backend_decl) + if (fields.length () > i + && fields[i] != nullptr) continue; bool same_alloc_type = c->attr.allocatable