#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("strtold(\"nan\", 0) = %g\n", (double) strtold
("nan", 0));
printf("(3.43646e+4928)^(3.43646e+4928) = %g\n",
(double) powl(3.43646e+4928l, 3.43646e+4928l));
return 0;
}
gcc test.c -o test.exe & test
strtold("nan", 0) = 0
(3.43646e+4928)^(3.43646e+4928) = -1.#IND
Tested with gcc v3.3.1 (mingw special 20030804-1),
MinGW v3.1.0-1.
Logged In: YES
user_id=760771
Not a MinGW bug.
Although your problem may be interesting and causing you problems you wish answers to, it is not a problem with
the MinGW runtime, w32api, GCC, binutils or msys. Your BUG report has therefore been deleted. If you feel that this
needs further discussion then please post to mingw-users@lists.sf.net.
Thanks for your interest in the MinGW Project,
MinGW Project Administrators
Logged In: YES
user_id=760771
The first three rows was correct before to submit the form:
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
or include: math.h, stdio.h & stdlib.h.
Logged In: YES
user_id=11494
Thanks for the report and testcase.
I think I've fixed the strtold ("nan", 0) bug. Now reports
strtold(nan, 0) = 1.#QNAN
I'll look at the powl vs INF bug as soon as I can.
Danny
Logged In: YES
user_id=11494
The powl overflow bug should be fixed now in CVS.
Danny