This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for division by zero in template arguments
- To: mark at markmitchell dot com
- Subject: Re: PATCH for division by zero in template arguments
- From: Jason Merrill <jason at cygnus dot com>
- Date: 17 Jun 1998 00:47:25 -0700
- Cc: Derrick Bass <derrick at tapir dot Caltech dot EDU>, egcs-patches at cygnus dot com
- References: <199806162146.OAA16621@smtp.earthlink.net>
>>>>> Mark Mitchell <mark@markmitchell.com> writes:
> Here's a fix for your problem. Jason, OK?
No. The GCC policy is to handle division by zero at runtime. This is
especially important for reals, where division by zero may be deliberate,
to generate a NaN.
The cp_thing change is OK.
Jason