]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix bootstrap broken by gcc-15-1965-ge4f2f46e015
authorAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 11 Jul 2024 09:21:04 +0000 (11:21 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 11 Jul 2024 13:38:59 +0000 (15:38 +0200)
gcc/fortran/ChangeLog:

* trans-array.cc (gfc_conv_array_parameter): Init variable to
NULL_TREE to fix bootstrap.

gcc/fortran/trans-array.cc

index ed0ad5429e24ee7e274830bb2d8d77ff0b93659c..140d933e45d421e8d373e202644273207ac81ac3 100644 (file)
@@ -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;