call.c (build_builtin_candidate): Don't set LOOKUP_ONLYCONVERTING if we're contextual...
authorJason Merrill <jason@redhat.com>
Wed, 26 Aug 2009 04:35:26 +0000 (00:35 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 26 Aug 2009 04:35:26 +0000 (00:35 -0400)
commit1dad57e65d9539eccc652dbb42b5574db72bb3fc
tree221363f432b4f3bce972f15059e31d770a04f532
parent7919d7b4422cefaa7768d576a73bcf96a6efd6cb
call.c (build_builtin_candidate): Don't set LOOKUP_ONLYCONVERTING if we're contextually converting to bool.

* call.c (build_builtin_candidate): Don't set LOOKUP_ONLYCONVERTING
if we're contextually converting to bool.
(build_conditional_expr): Likewise.
* typeck.c (condition_conversion): Likewise.

From-SVN: r151114
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/explicit3.C [new file with mode: 0644]