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
This commit is contained in:
Mark Mitchell 1998-08-30 17:45:15 +00:00 committed by Mark Mitchell
parent 5acc5ee946
commit 0aa5b426a9
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
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
templates with explicit template arguments.

View File

@ -352,7 +352,7 @@ dump_aggr_type (t, v, canonical_name)
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 */
dump_decl (DECL_CONTEXT (name), 0);
@ -728,7 +728,7 @@ dump_decl (t, v)
break;
case NAMESPACE_DECL:
if (DECL_CONTEXT (t) != global_namespace)
if (CP_DECL_CONTEXT (t) != global_namespace)
{
dump_decl (DECL_CONTEXT (t), v);
OB_PUTC2 (':',':');