From 42c7b8075de9ae4425e3065c2bb07764f636aadc Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sun, 10 May 1998 18:53:45 -0400 Subject: class.c (finish_struct_1): Use OVL_CURRENT on TREE_VEC_ELT. * class.c (finish_struct_1): Use OVL_CURRENT on TREE_VEC_ELT. * decl2.c (constructor_name_full): Likewise. * tree.c (mapcar): Add OVERLOAD support. * init.c (resolve_offset_ref): We must use basetype_path before we destroy it with a call to convert_pointer_to. From-SVN: r19656 --- gcc/cp/cp-tree.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gcc/cp/cp-tree.h') diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 9c90531..662ba15 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -1097,6 +1097,16 @@ struct lang_decl ((TREE_CODE (NODE) == FUNCTION_DECL && DECL_FUNCTION_MEMBER_P (NODE)) \ ? DECL_CLASS_CONTEXT (NODE) : DECL_CONTEXT (NODE)) +/* 1 iff NODE has namespace scope, including the global namespace. */ +#define DECL_NAMESPACE_SCOPE(NODE) \ + (DECL_CONTEXT (NODE) == NULL_TREE \ + || TREE_CODE (DECL_CONTEXT (NODE)) == NAMESPACE_DECL) + +/* 1 iff NODE is a class member. */ +#define DECL_CLASS_SCOPE(NODE) \ + (DECL_CONTEXT (NODE) \ + && TREE_CODE_CLASS (TREE_CODE (DECL_CONTEXT (NODE))) == 't') + /* For a NAMESPACE_DECL: the list of using namespace directives The PURPOSE is the used namespace, the value is the namespace that is the common ancestor. */ -- cgit v1.1