re PR c++/47080 ([C++0x] explicit conversion function return conversions not restrict...
authorJason Merrill <jason@redhat.com>
Mon, 20 Jun 2011 14:40:38 +0000 (10:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Jun 2011 14:40:38 +0000 (10:40 -0400)
commitb028af11640a2a31c267b73cc40a9b162632a7d0
tree5547a21a42cea0d32c973213b19d667cb827c2e9
parentde721390198dfc1d1521b315ad96e556d950224a
re PR c++/47080 ([C++0x] explicit conversion function return conversions not restricted to qualifications)

PR c++/47080
* call.c (rejection_reason_code): Add rr_explicit_conversion.
(print_z_candidate): Handle it.
(explicit_conversion_rejection): New.
(build_user_type_conversion_1): Reject an explicit conversion
function that requires more than a qualification conversion.

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