aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-05-30 17:39:59 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-05-30 17:39:59 +0000
commit54ae96de89f391cd76bbd0bfab208b54e71804ec (patch)
tree21f6a519f101726787f41ec3d6ab7c7bc260d528 /gcc/cp/call.c
parent28ecb7ab4784f0bf62175eb94dfde71a2ad4b378 (diff)
downloadgcc-54ae96de89f391cd76bbd0bfab208b54e71804ec.zip
gcc-54ae96de89f391cd76bbd0bfab208b54e71804ec.tar.gz
gcc-54ae96de89f391cd76bbd0bfab208b54e71804ec.tar.bz2
* call.c (joust): Fix handling of overloaded builtin operators.
From-SVN: r34269
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 2bd5c81..acb5cfe 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -5128,7 +5128,7 @@ joust (cand1, cand2, warn)
/* Kludge around broken overloading rules whereby
Integer a, b; test ? a : b; is ambiguous, since there's a builtin
that takes references and another that takes values. */
- if (DECL_OVERLOADED_OPERATOR_P (cand1->fn) == COND_EXPR)
+ if (cand1->fn == ansi_opname (COND_EXPR))
{
tree c1 = TREE_VEC_ELT (cand1->convs, 1);
tree c2 = TREE_VEC_ELT (cand2->convs, 1);