call.c (merge_conversion_sequences): Set bad_p and user_conv_p on all of the second...
authorJason Merrill <jason@redhat.com>
Mon, 12 Sep 2011 18:04:55 +0000 (14:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 12 Sep 2011 18:04:55 +0000 (14:04 -0400)
commit940023f4baf01438669c2316bc0e25eb73c9cf19
treea0b9e337e48a0e15f1a6f11de52f6930317c52a2
parent62a405ddf395d4804d18954fc6b09d90da345d39
call.c (merge_conversion_sequences): Set bad_p and user_conv_p on all of the second conversion sequence.

* call.c (merge_conversion_sequences): Set bad_p and user_conv_p
on all of the second conversion sequence.
(build_user_type_conversion_1): Set bad_p on the ck_user conv.
(convert_like_real): Handle bad ck_ref_bind with user_conv_p in the
first section.  Fix loop logic.
(initialize_reference): Call convert_like for diagnostics when
we have a (bad) conversion.

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