OSDN Git Service

* call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Dec 2000 16:44:22 +0000 (16:44 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Dec 2000 16:44:22 +0000 (16:44 +0000)
        DECL_STATIC_FUNCTION_P.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38464 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/call.c

index a67f6bd..51fbec9 100644 (file)
@@ -1,5 +1,10 @@
 2000-12-22  Jason Merrill  <jason@redhat.com>
 
+       * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not
+       DECL_STATIC_FUNCTION_P.
+
+       * typeck.c (build_binary_op): Fix pmf comparison logic.
+
        * semantics.c (genrtl_finish_function): Don't try to jump to
        return_label unless it exists.
 
index 07d7268..c8aed73 100644 (file)
@@ -5155,7 +5155,8 @@ joust (cand1, cand2, warn)
     winner = more_specialized
       (TI_TEMPLATE (cand1->template), TI_TEMPLATE (cand2->template),
        /* Never do unification on the 'this' parameter.  */
-       TREE_VEC_LENGTH (cand1->convs) - !DECL_STATIC_FUNCTION_P (cand1->fn));
+       TREE_VEC_LENGTH (cand1->convs)
+       - DECL_NONSTATIC_MEMBER_FUNCTION_P (cand1->fn));
 
   /* or, if not that,
      the  context  is  an  initialization by user-defined conversion (see