Commit 6c011b01 by Jason Merrill Committed by Jason Merrill

decl.c (lookup_tag): Use CP_DECL_CONTEXT.

	* decl.c (lookup_tag): Use CP_DECL_CONTEXT.
	* tree.c (make_binfo): Fix length.

From-SVN: r20954
parent 092f7be3
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> 1998-06-30 Benjamin Kosnik <bkoz@bliss.nabi.net>
* decl2.c (lang_decode_option): Remove warn_template_debugging. * decl2.c (lang_decode_option): Remove warn_template_debugging.
......
...@@ -4414,7 +4414,7 @@ lookup_tag (form, name, binding_level, thislevel_only) ...@@ -4414,7 +4414,7 @@ lookup_tag (form, name, binding_level, thislevel_only)
else if (level->namespace_p) else if (level->namespace_p)
/* Do namespace lookup. */ /* Do namespace lookup. */
/* XXX: is this a real lookup, considering using-directives etc. ??? */ /* 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)); tree old = BINDING_TYPE (binding_for_name (name, tail));
/* If it has an original type, it is a typedef, and we /* If it has an original type, it is a typedef, and we
......
...@@ -1186,7 +1186,7 @@ make_binfo (offset, binfo, vtable, virtuals, chain) ...@@ -1186,7 +1186,7 @@ make_binfo (offset, binfo, vtable, virtuals, chain)
tree vtable, virtuals; tree vtable, virtuals;
tree chain; tree chain;
{ {
tree new_binfo = make_tree_vec (6); tree new_binfo = make_tree_vec (7);
tree type; tree type;
if (TREE_CODE (binfo) == TREE_VEC) if (TREE_CODE (binfo) == TREE_VEC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment