This is the mail archive of the
mailing list for the GCC project.
Re: Patch for PR 14635 (regression: nan not in C90)
On Thu, Mar 18, 2004 at 06:06:50PM -0700, Roger Sayle wrote:
> Why is it an issue for nan(whatever) to expand to a constant at
> compiler-time, any more than it is for sqrt(4.0) for example.
float x = nanf("");
should not compile, whereas
float x = __builtin_nanf("");
must, given the promises we've made to libc about __builtin_nanf("")
being an appropriate definition of the NAN macro.