decl.c (lang_mark_tree): Mark NAMESPACE_LEVEL.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 13 Oct 1999 22:40:42 +0000 (22:40 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 13 Oct 1999 22:40:42 +0000 (18:40 -0400)
* decl.c (lang_mark_tree): Mark NAMESPACE_LEVEL.

* pt.c (tsubst, case INTEGER_TYPE): Be more explicit in zero-size
array error.

From-SVN: r29954

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

index 10e8f69..9c421a8 100644 (file)
@@ -1,3 +1,10 @@
+1999-10-13  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * decl.c (lang_mark_tree): Mark NAMESPACE_LEVEL.
+
+       * pt.c (tsubst, case INTEGER_TYPE): Be more explicit in zero-size
+       array error.
+
 1999-10-13  Mark Mitchell  <mark@codesourcery.com>
 
        * decl.c (make_rtl_for_local_static): Don't create register RTL
index a6a2037..122b025 100644 (file)
@@ -14353,6 +14353,8 @@ lang_mark_tree (t)
          ggc_mark_tree (ld->decl_flags.context);
          if (TREE_CODE (t) != NAMESPACE_DECL)
            ggc_mark_tree (ld->decl_flags.u.template_info);
+         else
+           mark_binding_level (&NAMESPACE_LEVEL (t));
          if (CAN_HAVE_FULL_LANG_DECL_P (t))
            {
              ggc_mark_tree (ld->main_decl_variant);
index 027e04a..8ded333 100644 (file)
@@ -6324,7 +6324,7 @@ tsubst (t, args, complain, in_decl)
                 Attempting to create an array with a size that is
                 zero or negative.  */
            if (complain)
-             cp_error ("creating array with size `%E'", max);
+             cp_error ("creating array with size zero (`%E')", max);
 
            return error_mark_node;
          }