summaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-05 15:48:01 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-05 15:48:01 +0000
commitbab4625684bc524d751b0bbb3a4c2492aa22c807 (patch)
tree859e5020d7b4ccd98da9f6b6f9b6f19f65d32191 /gcc/cp/cp-tree.h
parentb012ec187bed670561872c04dc68c3d7ae3376b2 (diff)
downloadgcc-bab4625684bc524d751b0bbb3a4c2492aa22c807.tar.gz
PR c++/35219
* cp-tree.h: Fix DECL_NONSTATIC_MEMBER_P to handle member template functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141612 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 7ff5824180a..b79b819f592 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -1978,8 +1978,7 @@ struct lang_decl GTY(())
/* Nonzero for a DECL means that this member is a non-static member. */
#define DECL_NONSTATIC_MEMBER_P(NODE) \
- ((TREE_CODE (NODE) == FUNCTION_DECL \
- && DECL_NONSTATIC_MEMBER_FUNCTION_P (NODE)) \
+ (DECL_NONSTATIC_MEMBER_FUNCTION_P (NODE) \
|| TREE_CODE (NODE) == FIELD_DECL)
/* Nonzero for _DECL means that this member object type