diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-03 10:59:52 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-03 10:59:52 +0000 |
commit | 4db06cad2f41ff65eab6bac60df45d48948345c1 (patch) | |
tree | af8534fe7cd535d7a4f8d17fd812319f4e68016a /gcc/cp | |
parent | 5534dec209f766f396b0dfc4de8aed5e6998efbc (diff) | |
download | gcc-4db06cad2f41ff65eab6bac60df45d48948345c1.tar.gz |
* name-lookup.c (binding_entry_free): Nullify name and type
fields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72069 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1661e4170c5..50df2b92f1d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-10-03 Gabriel Dos Reis <gdr@integrable-solutions.net> + + * name-lookup.c (binding_entry_free): Nullify name and type + fields. + 2003-10-02 Mark Mitchell <mark@codesourcery.com> PR c++/12486 diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 386fb20ede0..3e9d2cab584 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -66,6 +66,8 @@ binding_entry_make (tree name, tree type) static inline void binding_entry_free (binding_entry entry) { + entry->name = NULL; + entry->type = NULL; entry->chain = free_binding_entry; free_binding_entry = entry; } @@ -114,7 +116,6 @@ binding_table_free (binding_table table) { binding_entry entry = temp; temp = entry->chain; - entry->chain = NULL; binding_entry_free (entry); } table->chain[i] = NULL; |