decl.c (cxx_scope_descriptor): Fix thinko.
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Fri, 19 Sep 2003 03:12:31 +0000 (03:12 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 19 Sep 2003 03:12:31 +0000 (03:12 +0000)
        * decl.c (cxx_scope_descriptor): Fix thinko.
        (struct cp_binding_level): Adjust type of binding_depth field.

From-SVN: r71557

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

index 1bc2abf5e9c44888bd72da44db268607d358448e..6b0fa8abfd9153cce5c33189b20132b4e46a46a3 100644 (file)
@@ -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
index 8676698b2eb4729de5fae8a823f5cf359a3f924d..095c6fdd61b48a1d9d07f766d08906b574cb35da 100644 (file)
@@ -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"
   };