--- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-01 01:15 ---
Because that is not the C++ standard says it should do :).
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--
--- Comment #2 from korikov at hotmail dot com 2010-04-01 01:09 ---
(In reply to comment #1)
> 100.0 is of a type double in C++, not float. Try 100.0f.
>
yes 100.0f works as well as (float)100.0 but the point is when the compiler
does automatic conversion from float to double, then wh
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-04-01 00:54 ---
100.0 is of a type double in C++, not float. Try 100.0f.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43612