INFINITY used in .hc files without -std=c99
The C macro INFINITY
is apparently defined by the C99 standard. On Solaris they take a strict interpretation of this and only define it conditionally:
#if defined(_STDC_C99) || _XOPEN_SOURCE - 0 >= 600 || defined(__C99FEATURES__)
ghc does not use gcc -std=c99
but perhaps it should? This bug is triggered by test 1861 (See #1861 (closed)).
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |