[GHC] #6023: cpp symbol __GLASGOW_HASKELL__ doesn't reflect version number
GHC
cvs-ghc at haskell.org
Thu Apr 19 17:47:41 CEST 2012
#6023: cpp symbol __GLASGOW_HASKELL__ doesn't reflect version number
------------------------------+---------------------------------------------
Reporter: josef | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
I've just installed ghc 7.4.1 and it seems to get the value of the
__GLASGOW_HASKELL__ variable wrong:
Load the program below in ghci and run main. I get "704" as output.
{{{
{-# OPTIONS_GHC -cpp #-}
module Main where
#if __GLASGOW_HASKELL__ == 704
main = putStrLn "704"
#else
main = putStrLn "something else"
#endif
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6023>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list