+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.
/* 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)