This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47080] [C++0x] explicit conversion function return conversions not restricted to qualifications
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Jun 2011 14:42:57 +0000
- Subject: [Bug c++/47080] [C++0x] explicit conversion function return conversions not restricted to qualifications
- Auto-submitted: auto-generated
- References: <bug-47080-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47080
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-20 14:40:43 UTC ---
Author: jason
Date: Mon Jun 20 14:40:38 2011
New Revision: 175217
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175217
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/explicit6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog