[Bug c++/14830] compiler incorrectly diagnoses ambigous operator overload
iker at research dot att dot com
gcc-bugzilla@gcc.gnu.org
Sat Apr 3 19:14:00 GMT 2004
------- Additional Comments From iker at research dot att dot com 2004-04-03 19:14 -------
Subject: Re: compiler incorrectly diagnoses ambigous operator
overload
It seems more natural (at least to me) to have the
compiler select the direct conversion to string for
the assignment instead of considering the longer
route as well. Is there some fundamental reason why
it considers the direct and indirect conversions as
equivalent?
Regards,
Iker
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-03 15:54 -------
> Invalid as float can be converted to a char and string well can be converted to string, so the ambigous
> error is correct.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14830
More information about the Gcc-bugs
mailing list