diff options
author | Richard Henderson <rth@cygnus.com> | 1999-08-02 14:33:32 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-08-02 14:33:32 -0700 |
commit | 83e9506e1389e61209f7999e40612ba42cb937ad (patch) | |
tree | a10666ae94639fdb18c658e821525c0dc4d78d81 /gcc | |
parent | dfafc897fe79d12aae145e182301260f0dacb2dd (diff) | |
download | gcc-83e9506e1389e61209f7999e40612ba42cb937ad.zip gcc-83e9506e1389e61209f7999e40612ba42cb937ad.tar.gz gcc-83e9506e1389e61209f7999e40612ba42cb937ad.tar.bz2 |
* cp-tree.h (TYPE_PTRMEMFUNC_P): Check TYPE_LANG_SPECIFIC non-null.
From-SVN: r28409
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 829120f..675475e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 2a17d48..e624102 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -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) |