diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index a7f9a91..1678ed2 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -2620,7 +2620,8 @@ build_user_type_conversion_1 (totype, expr, flags) cand = candidates; /* any one will do */ cand->second_conv = build1 (AMBIG_CONV, totype, expr); ICS_USER_FLAG (cand->second_conv) = 1; - ICS_BAD_FLAG (cand->second_conv) = 1; + /* Don't set ICS_BAD_FLAG; an ambiguous conversion is no worse than + another user-defined conversion. */ return cand; } |