decl.c (lookup_tag): Use CP_DECL_CONTEXT.
authorJason Merrill <jason@yorick.cygnus.com>
Mon, 6 Jul 1998 18:24:46 +0000 (18:24 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 6 Jul 1998 18:24:46 +0000 (14:24 -0400)
* decl.c (lookup_tag): Use CP_DECL_CONTEXT.
* tree.c (make_binfo): Fix length.

From-SVN: r20954

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

index f57a473c2f888e42f86b82493ee76422bdbf9dbe..ecd9e843889fb584d6b82a147f2c11f61f815024 100644 (file)
@@ -1,3 +1,9 @@
+1998-07-06  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * decl.c (lookup_tag): Use CP_DECL_CONTEXT.
+
+       * tree.c (make_binfo): Fix length.
+
 1998-06-30  Benjamin Kosnik  <bkoz@bliss.nabi.net>
 
         * decl2.c (lang_decode_option): Remove warn_template_debugging.
index 51218633ad06f1c2c7d08fc3cdb0f1027bc364ad..2136417edcb61e3aad36a50d384da24425d07b42 100644 (file)
@@ -4414,7 +4414,7 @@ lookup_tag (form, name, binding_level, thislevel_only)
       else if (level->namespace_p)
        /* Do namespace lookup. */
        /* XXX: is this a real lookup, considering using-directives etc. ??? */
-       for (tail = current_namespace; 1; tail = DECL_CONTEXT (tail))
+       for (tail = current_namespace; 1; tail = CP_DECL_CONTEXT (tail))
          {
            tree old = BINDING_TYPE (binding_for_name (name, tail));
            /* If it has an original type, it is a typedef, and we
index 05c54fa7e64e39920017ca235a41bc137e06cc4a..87a64a3d9693d3a133638b5095f7851889d31d04 100644 (file)
@@ -1186,7 +1186,7 @@ make_binfo (offset, binfo, vtable, virtuals, chain)
      tree vtable, virtuals;
      tree chain;
 {
-  tree new_binfo = make_tree_vec (6);
+  tree new_binfo = make_tree_vec (7);
   tree type;
 
   if (TREE_CODE (binfo) == TREE_VEC)