]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fortran: fix bootstrap after r16-4372 [PR122257]
authorHarald Anlauf <anlauf@gmx.de>
Sat, 11 Oct 2025 12:53:37 +0000 (14:53 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 11 Oct 2025 12:53:37 +0000 (14:53 +0200)
PR fortran/50377
PR fortran/122257

gcc/fortran/ChangeLog:

* resolve.cc (resolve_actual_arglist): Initialize variable.

gcc/fortran/resolve.cc

index 4c45de08f035d38c8455ea6c93763c72e8149d22..f419f5c7559f0d2facab8e7a329cf6745e5be096 100644 (file)
@@ -2030,7 +2030,7 @@ static bool
 resolve_actual_arglist (gfc_actual_arglist *arg, procedure_type ptype,
                        bool no_formal_args)
 {
-  gfc_symbol *sym;
+  gfc_symbol *sym = NULL;
   gfc_symtree *parent_st;
   gfc_expr *e;
   gfc_component *comp;