From: Jason Merrill Date: Fri, 22 Dec 2000 16:44:22 +0000 (-0500) Subject: call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not DECL_STATIC_FUNCTION_P. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c939ca5f58d1bed64d68dd78f90f73122b814d6f;p=gcc.git call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not DECL_STATIC_FUNCTION_P. * call.c (joust): Use DECL_NONSTATIC_MEMBER_FUNCTION_P, not DECL_STATIC_FUNCTION_P. From-SVN: r38464 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a67f6bda574..51fbec9b4f4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,10 @@ 2000-12-22 Jason Merrill + * 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. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 07d7268bd7b..c8aed738036 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -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