* decl.c (binding_for_name): Fix initialization thinko.
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sun, 16 Mar 2003 09:16:59 +0000 (09:16 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 16 Mar 2003 09:16:59 +0000 (09:16 +0000)
From-SVN: r64429

gcc/cp/ChangeLog
gcc/cp/decl.c

index 3a9e210cce777439f4db59c7bd0db5439e81ce4b..7cb5c9f931f1d65abc13c7b3391f4074050bcd79 100644 (file)
@@ -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.
index db116e1f7a87fec42e93e0a7e2f4ceeccb3943fb..75ac6d3b88e319b6d39f4bdacbe5edfcc80ca727 100644 (file)
@@ -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;
 }