From dc2cd23211e027961bd2c4071a57bfde60d66976 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 5 Feb 2006 12:25:05 +0100 Subject: [PATCH] * resolve.c (resolve_symbol): Initialize constructor_expr to NULL. From-SVN: r110611 --- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/resolve.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2ea8316293a..971a3699290 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2006-02-05 Jakub Jelinek + + * resolve.c (resolve_symbol): Initialize constructor_expr to NULL. + 2006-02-04 Thomas Koenig PR fortran/25075 diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 3767992bbb0..474030b1e71 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -4863,6 +4863,7 @@ resolve_symbol (gfc_symbol * sym) specification-part of a module and does not have the ALLOCATABLE or POINTER attribute, the object shall have the SAVE attribute." */ + constructor_expr = NULL; if (sym->ts.type == BT_DERIVED && !(sym->value || flag)) constructor_expr = gfc_default_initializer (&sym->ts);