call.c (can_convert): Allow user-defined conversions.
authorJason Merrill <jason@redhat.com>
Sat, 13 Jul 2013 23:10:12 +0000 (19:10 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 13 Jul 2013 23:10:12 +0000 (19:10 -0400)
commit53db1bc08e4450cb53975377c209ff9cc9bfca9b
treee820a3247e286fe0510394ffbfa1ccf945fe62f0
parente43257e81709a7c2f3d6f08623c1e6331b71a92a
call.c (can_convert): Allow user-defined conversions.

* call.c (can_convert): Allow user-defined conversions.
(can_convert_standard): New.
* cp-tree.h: Declare it.
* cvt.c (convert_to_reference): Use it.
* pt.c (convert_nontype_argument): Likewise.
* search.c (check_final_overrider): Likewise.
Don't worry about user-defined conversions.

From-SVN: r200937
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/pt.c
gcc/cp/search.c