aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2003-09-19 03:12:31 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2003-09-19 03:12:31 +0000
commite7ab53ea69feee18ce98ade07d272d16534e89d8 (patch)
tree02bd56caf5ca8eab1783eac3a48281af2b606c30
parenta1c18b4ac858dcbfa31ecf411c7f44289771765f (diff)
downloadgcc-e7ab53ea69feee18ce98ade07d272d16534e89d8.zip
gcc-e7ab53ea69feee18ce98ade07d272d16534e89d8.tar.gz
gcc-e7ab53ea69feee18ce98ade07d272d16534e89d8.tar.bz2
decl.c (cxx_scope_descriptor): Fix thinko.
* decl.c (cxx_scope_descriptor): Fix thinko. (struct cp_binding_level): Adjust type of binding_depth field. From-SVN: r71557
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 1bc2abf..6b0fa8a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * decl.c (cxx_scope_descriptor): Fix thinko.
+ (struct cp_binding_level): Adjust type of binding_depth field.
+
2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
PR c++/12320
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 8676698..095c6fd 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"
};