#2929: INFINITY used in .hc files without -std=c99
--------------------+-------------------------------------------------------
Reporter: duncan | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.3 | Severity: normal
Keywords: | Testcase: 1861
Os: Solaris | Architecture: sparc
--------------------+-------------------------------------------------------
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).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2929>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs