summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-05 11:25:05 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-05 11:25:05 +0000
commit08927412ac7a8fb2fcec91fb16828975abb58bc9 (patch)
tree52eee706dd7cae039133c50185fb273506f5597b
parent2d9b0b605dca0aeeae3f451bf83c311041dff611 (diff)
downloadppe42-gcc-08927412ac7a8fb2fcec91fb16828975abb58bc9.tar.gz
ppe42-gcc-08927412ac7a8fb2fcec91fb16828975abb58bc9.zip
* resolve.c (resolve_symbol): Initialize constructor_expr to NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110611 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/resolve.c1
2 files changed, 5 insertions, 0 deletions
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 <jakub@redhat.com>
+
+ * resolve.c (resolve_symbol): Initialize constructor_expr to NULL.
+
2006-02-04 Thomas Koenig <Thomas.Koenig@online.de>
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);
OpenPOWER on IntegriCloud