#include <math.h> double x = -__builtin_inf (); int main() { if (isinf (x) != -1) abort (); return 0; }
Examine the definition of isinf closely. It returns -1 for -inf. -- Summary: isinf incorrectly expanded Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rth at gcc dot gnu dot org GCC target triplet: i386-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31175