Commit 0aa5b426 by Mark Mitchell Committed by Mark Mitchell

error.c (dump_decl): Use CP_DECL_CONTEXT, not DECL_CONTEXT, when comparing with global_namespace.

	* error.c (dump_decl): Use CP_DECL_CONTEXT, not DECL_CONTEXT, when
	comparing with global_namespace.
	(dump_aggr_type): Likewise.

From-SVN: r22105
parent 5acc5ee9
1998-08-30 Mark Mitchell <mark@markmitchell.com> 1998-08-30 Mark Mitchell <mark@markmitchell.com>
* error.c (dump_decl): Use CP_DECL_CONTEXT, not DECL_CONTEXT, when
comparing with global_namespace.
(dump_aggr_type): Likewise.
* decl.c (grokfndecl): Issue error on declaration of friend * decl.c (grokfndecl): Issue error on declaration of friend
templates with explicit template arguments. templates with explicit template arguments.
......
...@@ -352,7 +352,7 @@ dump_aggr_type (t, v, canonical_name) ...@@ -352,7 +352,7 @@ dump_aggr_type (t, v, canonical_name)
name = TYPE_NAME (canonical_name ? TYPE_MAIN_VARIANT (t) : t); name = TYPE_NAME (canonical_name ? TYPE_MAIN_VARIANT (t) : t);
if (name && DECL_CONTEXT (name) && DECL_CONTEXT (name) != global_namespace) if (name && CP_DECL_CONTEXT (name) != global_namespace)
{ {
/* FUNCTION_DECL or RECORD_TYPE */ /* FUNCTION_DECL or RECORD_TYPE */
dump_decl (DECL_CONTEXT (name), 0); dump_decl (DECL_CONTEXT (name), 0);
...@@ -728,7 +728,7 @@ dump_decl (t, v) ...@@ -728,7 +728,7 @@ dump_decl (t, v)
break; break;
case NAMESPACE_DECL: case NAMESPACE_DECL:
if (DECL_CONTEXT (t) != global_namespace) if (CP_DECL_CONTEXT (t) != global_namespace)
{ {
dump_decl (DECL_CONTEXT (t), v); dump_decl (DECL_CONTEXT (t), v);
OB_PUTC2 (':',':'); OB_PUTC2 (':',':');
......
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