OSDN Git Service

PR c++/35219
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Nov 2008 15:48:01 +0000 (15:48 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Nov 2008 15:48:01 +0000 (15:48 +0000)
        * 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/ChangeLog
gcc/cp/cp-tree.h
gcc/testsuite/ChangeLog

index 3b4f8b1..55a81ec 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-05  Fabien Chene <fabien.chene@gmail.com>
+
+       PR c++/35219
+       * cp-tree.h: Fix DECL_NONSTATIC_MEMBER_P to handle member template
+       functions.
+
 2008-11-05  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/37742
index 7ff5824..b79b819 100644 (file)
@@ -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
index 79811bd..1049f5f 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-05  Fabien Chene <fabien.chene@gmail.com>
+
+       PR c++/32519
+       * g++.dg/template/pr32519.C: New test.
+
 2008-11-05  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/37742