summaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-19 03:12:31 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-19 03:12:31 +0000
commitccc812a4c9ca1164f2a44b6a590f11589b2956b9 (patch)
tree02bd56caf5ca8eab1783eac3a48281af2b606c30 /gcc/cp/decl.c
parentd2424e5ae1d3fe44dcbbe4e9c3675c49517ef04b (diff)
downloadgcc-ccc812a4c9ca1164f2a44b6a590f11589b2956b9.tar.gz
* decl.c (cxx_scope_descriptor): Fix thinko.
(struct cp_binding_level): Adjust type of binding_depth field. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71557 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 8676698b2eb..095c6fdd61b 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -371,7 +371,7 @@ struct cp_binding_level GTY(())
tree dead_vars_from_for;
/* Binding depth at which this level began. */
- unsigned binding_depth;
+ int binding_depth;
/* The kind of scope that this object represents. However, a
SK_TEMPLATE_SPEC scope is represented with KIND set to
@@ -455,6 +455,9 @@ cxx_scope_descriptor (cxx_scope *scope)
"try-scope",
"catch-scope",
"for-scope",
+ "function-parameter-scope",
+ "class-scope",
+ "namespace-scope",
"template-parameter-scope",
"template-explicit-spec-scope"
};