generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
[platform/upstream/gcc.git] / gcc / cp / class.c
index 00aeefd..5aef0fe 100644 (file)
@@ -3219,8 +3219,7 @@ check_field_decls (tree t, tree *access_decls,
         to members which might hold dynamic memory. So do not warn
         for pointers to functions or pointers to members.  */
       if (TYPE_PTR_P (type)
-         && !TYPE_PTRFN_P (type)
-         && !TYPE_PTR_TO_MEMBER_P (type))
+         && !TYPE_PTRFN_P (type))
        has_pointers = true;
 
       if (CLASS_TYPE_P (type))