https://gcc.gnu.org/g:f11ea3c6f57c5504b861d1b027bb7ef6cfa197c4
commit f11ea3c6f57c5504b861d1b027bb7ef6cfa197c4 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 b154cb3161c2..8f5e78bf1ffd 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) {