* cp-tree.h (TYPE_PTRMEMFUNC_P): Check TYPE_LANG_SPECIFIC non-null.

From-SVN: r28409
This commit is contained in:
Richard Henderson 1999-08-02 14:33:32 -07:00 committed by Richard Henderson
parent dfafc897fe
commit 83e9506e13
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
1999-08-02 Richard Henderson <rth@cygnus.com>
* cp-tree.h (TYPE_PTRMEMFUNC_P): Check TYPE_LANG_SPECIFIC non-null.
1999-08-01 Mark Mitchell <mark@codesourcery.com>
* call.c (build_conditional_expr): Fix typo in comment.

View File

@ -1780,8 +1780,11 @@ extern int flag_new_for_scope;
/* Nonzero for _TYPE node means that this type is a pointer to member
function type. */
#define TYPE_PTRMEMFUNC_P(NODE) \
(TREE_CODE(NODE) == RECORD_TYPE && TYPE_PTRMEMFUNC_FLAG (NODE))
#define TYPE_PTRMEMFUNC_P(NODE) \
(TREE_CODE(NODE) == RECORD_TYPE \
&& TYPE_LANG_SPECIFIC(NODE) \
&& TYPE_PTRMEMFUNC_FLAG (NODE))
#define TYPE_PTRMEMFUNC_FLAG(NODE) \
(TYPE_LANG_SPECIFIC(NODE)->type_flags.ptrmemfunc_flag)