This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Consolidate division by zero warnings
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.
Dirk