https://gcc.gnu.org/g:7560fcac3bc7b79fb2cf50b746cb6f3143f305be
commit 7560fcac3bc7b79fb2cf50b746cb6f3143f305be Author: Mikael Morin <mik...@gcc.gnu.org> Date: Tue Apr 15 17:42:09 2025 +0200 Correction régression dependency_12 Diff: --- gcc/fortran/trans-decl.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/fortran/trans-decl.cc b/gcc/fortran/trans-decl.cc index 5b2bf8297c93..af12bf4255e6 100644 --- a/gcc/fortran/trans-decl.cc +++ b/gcc/fortran/trans-decl.cc @@ -1033,6 +1033,9 @@ update_type_bounds (tree type, tree lbound[GFC_MAX_DIMENSIONS], tree ubound[GFC_MAX_DIMENSIONS], tree spacing[GFC_MAX_DIMENSIONS], tree root_type, int dim) { + if (dim > 0) + update_type_bounds (type, lbound, ubound, spacing, root_type, dim - 1); + tree current_lbound = lbound[dim]; if (current_lbound != NULL_TREE) {