FreeBSD/contrib/gcc/cp/name-lookup.c
/* Process a namespace-alias declaration.  */
Process a namespace-alias declaration.
Process a namespace - alias declaration .
void
do_namespace_alias (tree alias, tree namespace)
{
  if (namespace == error_mark_node)
    return;
  gcc_assert (TREE_CODE (namespace) == NAMESPACE_DECL);
  namespace = ORIGINAL_NAMESPACE (namespace);
  alias = build_lang_decl (NAMESPACE_DECL, alias, void_type_node);
  DECL_NAMESPACE_ALIAS (alias) = namespace;
  DECL_EXTERNAL (alias) = 1;
  DECL_CONTEXT (alias) = FROB_CONTEXT (current_scope ());
  pushdecl (alias);
  (*debug_hooks->global_decl) (alias);
}
void do_namespace_alias ( tree alias , tree namespace ) { if ( namespace == error_mark_node ) return ; gcc_assert ( TREE_CODE ( namespace ) == NAMESPACE_DECL ) ; namespace = ORIGINAL_NAMESPACE ( namespace ) ; alias = build_lang_decl ( NAMESPACE_DECL , alias , void_type_node ) ; DECL_NAMESPACE_ALIAS ( alias ) = namespace ; DECL_EXTERNAL ( alias ) = 1 ; DECL_CONTEXT ( alias ) = FROB_CONTEXT ( current_scope ( ) ) ; pushdecl ( alias ) ; ( * debug_hooks -> global_decl ) ( alias ) ; }
Process a namespace-alias declaration.
Process a namespace - alias declaration .
/* Build the alias.  */ /* Emit debug info for namespace alias.  */