[Bug c++/14830] compiler incorrectly diagnoses ambigous operator overload

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Mon Apr 5 02:56:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-04-05 02:56 -------
[over.ics.user] explains that "A user-defined conversion sequence consists of 
an initial standard conversion sequence followed by a user-defined conversion
(12.3) followed by a second standard conversion sequence." So, the converstion 
from float to char comes "for free" as the final standard conversion (in case 
somebody is wondering, standard conversions are those made on built-in types). 

I believe the code is in fact ill-formed.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14830



More information about the Gcc-bugs mailing list