https://gcc.gnu.org/g:b6f68a3a335d2cfa2d841464d1a702ccec608002

commit b6f68a3a335d2cfa2d841464d1a702ccec608002
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 cf65665e57ba..3aa84f8b94f0 100644
--- a/gcc/fortran/trans-decl.cc
+++ b/gcc/fortran/trans-decl.cc
@@ -1035,6 +1035,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)
     {

Reply via email to