[GHC] #14027: __GLASGOW_HASKELL__ / ProjectVersionInt is not set correctly in ghc 8.2.1

#14027: __GLASGOW_HASKELL__ / ProjectVersionInt is not set correctly in ghc 8.2.1 -------------------------------------+------------------------------------- Reporter: choenerzs | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Incorrect result Unknown/Multiple | at runtime Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- __GLASGOW_HASKELL__ is 802 with ghc-8.2.1. {{{ #if __GLASGOW_HASKELL__ >= 803 thisShouldFail #endif }}} Does not fail. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14027 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14027: __GLASGOW_HASKELL__ / ProjectVersionInt is not set correctly in ghc 8.2.1 -------------------------------------+------------------------------------- Reporter: choenerzs | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by j.waldmann): 802 is parsed as x=8 yy=02, so it denotes 8.2, as per the specification https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/phases.html #standard-cpp-macros -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14027#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14027: __GLASGOW_HASKELL__ / ProjectVersionInt is not set correctly in ghc 8.2.1 -------------------------------------+------------------------------------- Reporter: choenerzs | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Build System | Version: Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by choenerzs): * status: new => closed * resolution: => invalid Comment: Sorry, thanks for pointing out where I can find that. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14027#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC