aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-02-05 12:25:05 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2006-02-05 12:25:05 +0100
commitdc2cd23211e027961bd2c4071a57bfde60d66976 (patch)
tree52eee706dd7cae039133c50185fb273506f5597b /gcc/fortran/resolve.c
parent41441e2545b2ae8e85781460776c31a0e0a088b2 (diff)
downloadgcc-dc2cd23211e027961bd2c4071a57bfde60d66976.zip
gcc-dc2cd23211e027961bd2c4071a57bfde60d66976.tar.gz
gcc-dc2cd23211e027961bd2c4071a57bfde60d66976.tar.bz2
* resolve.c (resolve_symbol): Initialize constructor_expr to NULL.
From-SVN: r110611
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r--gcc/fortran/resolve.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
index 3767992..474030b 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);