C++ PATCH: Consolidate division by zero warnings
Sat Apr 15 09:51:00 GMT 2006
On Saturday, 15. April 2006 05:36, Mark Mitchell wrote:
> static const int i = int (0.0 / 0.0);
Ok. This is not specific to C++, is it? Because in any case this doesn't work
in the C frontend either.
however, cases like
int i = __builtin_nanf("");
do produce a "overflow in implicit constant conversion" diagnostic. I guess a
bit more is missing for that.
More information about the Gcc-patches