egcs function overload error/bug

Alexandre Oliva oliva@dcc.unicamp.br
Wed Jan 20 18:14:00 GMT 1999


On Jan 20, 1999, gilley <gilley@netunlimited.net> wrote:

> Note: yes, you could say 1.0f or (float)1.0, but this still
>       seems to be something that should be fixed.
 
Nope, the call is ambiguous.  In terms of overload resolution,
converting a double to float is no better than converting it to int.

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list