diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-05 15:48:01 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-05 15:48:01 +0000 |
commit | bab4625684bc524d751b0bbb3a4c2492aa22c807 (patch) | |
tree | 859e5020d7b4ccd98da9f6b6f9b6f19f65d32191 /gcc/cp/cp-tree.h | |
parent | b012ec187bed670561872c04dc68c3d7ae3376b2 (diff) | |
download | gcc-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.h | 3 |
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 |