aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2003-03-16 09:16:59 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2003-03-16 09:16:59 +0000
commit4f907b595a4f1242abc1ce2f5d2aaf0c9d020945 (patch)
treee95a0b369971e4bd23a9fb751315a4371b622b1c /gcc
parent95101abf4b72146e74e858ef120e8884e1ec3cee (diff)
downloadgcc-4f907b595a4f1242abc1ce2f5d2aaf0c9d020945.zip
gcc-4f907b595a4f1242abc1ce2f5d2aaf0c9d020945.tar.gz
gcc-4f907b595a4f1242abc1ce2f5d2aaf0c9d020945.tar.bz2
* decl.c (binding_for_name): Fix initialization thinko.
From-SVN: r64429
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 3a9e210..7cb5c9f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * decl.c (binding_for_name): Fix initialization thinko.
+
2003-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
Compile-time improvement: 2/n.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index db116e1..75ac6d3 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -2089,6 +2089,9 @@ binding_for_name (tree name, tree scope)
BINDING_TYPE (result) = NULL_TREE;
BINDING_VALUE (result) = NULL_TREE;
BINDING_SCOPE (result) = scope;
+ result->is_local = false;
+ result->value_is_inherited = false;
+ result->has_level = true;
IDENTIFIER_NAMESPACE_BINDINGS (name) = result;
return result;
}