This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47080] [C++0x] explicit conversion function return conversions not restricted to qualifications


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]