This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH for division by zero in template arguments


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]