Actions
Bug #1682
closedmath.h constants, aren't constant
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
According to C99, HUGE_VAL, HUGE_VALF, HUGE_VALL, INFINITY, and NAN need to be
constant expressions. We use some gcc __builtin() call when defining them, which
violates the standard.
Test case to reproduce it:
http://gitweb.dragonflybsd.org/~beket/pcca-tests.git/blob_plain/master:/math.h/t_const.c
NetBSD is affected as well. FreeBSD + Opensolaris not.
Cheers,
Stathis
Actions