From bab4625684bc524d751b0bbb3a4c2492aa22c807 Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 5 Nov 2008 15:48:01 +0000 Subject: 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 --- gcc/cp/cp-tree.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/cp/cp-tree.h') 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 -- cgit v1.2.1