Commit c939ca5f by Jason Merrill Committed by Jason Merrill

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
parent fe08a886
2000-12-22 Jason Merrill <jason@redhat.com> 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 * semantics.c (genrtl_finish_function): Don't try to jump to
return_label unless it exists. return_label unless it exists.
......
...@@ -5155,7 +5155,8 @@ joust (cand1, cand2, warn) ...@@ -5155,7 +5155,8 @@ joust (cand1, cand2, warn)
winner = more_specialized winner = more_specialized
(TI_TEMPLATE (cand1->template), TI_TEMPLATE (cand2->template), (TI_TEMPLATE (cand1->template), TI_TEMPLATE (cand2->template),
/* Never do unification on the 'this' parameter. */ /* 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, /* or, if not that,
the context is an initialization by user-defined conversion (see the context is an initialization by user-defined conversion (see
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment