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

commit r15-1971-gb9513c6746bfdbbb2f5e2a52bc3504236692beeb
Author: Andre Vehreschild <ve...@gcc.gnu.org>
Date:   Thu Jul 11 11:21:04 2024 +0200

    Fix bootstrap broken by gcc-15-1965-ge4f2f46e015
    
    gcc/fortran/ChangeLog:
    
            * trans-array.cc (gfc_conv_array_parameter): Init variable to
            NULL_TREE to fix bootstrap.

Diff:
---
 gcc/fortran/trans-array.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc
index ed0ad5429e24..140d933e45d4 100644
--- a/gcc/fortran/trans-array.cc
+++ b/gcc/fortran/trans-array.cc
@@ -8662,7 +8662,7 @@ gfc_conv_array_parameter (gfc_se *se, gfc_expr *expr, 
bool g77,
   tree stmt;
   tree parent = DECL_CONTEXT (current_function_decl);
   tree ctree;
-  tree pack_attr;
+  tree pack_attr = NULL_TREE; /* Set when packing class arrays.  */
   bool full_array_var;
   bool this_array_result;
   bool contiguous;

Reply via email to