[Bug c++/43612] Double exception not caught if only float is present in exception

2010-03-31 Thread pinskia at gcc dot gnu dot org
--- 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 --

[Bug c++/43612] Double exception not caught if only float is present in exception

2010-03-31 Thread korikov at hotmail dot com
--- 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

[Bug c++/43612] Double exception not caught if only float is present in exception

2010-03-31 Thread pinskia at gcc dot gnu dot org
--- 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