
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Using cpphs 1.18.7, I got the following error with GHC 7.10.1 RC1: {{{ $ cat Main.hs {-# LANGUAGE CPP #-} module Main where main :: IO () main = putStrLn "Hello, World!" }}} {{{ $ ghc -pgmP cpphs -optP --cpp Main.hs ... /usr/local/stow/ghc-7.10.1.RC1/lib/ghc-7.10.0.20141222/include/ghcversion.h:12:30: parse error on input ‘\\’ }}} By replacing {{{\\}}} by {{{\}}} in ghcversion.h, the issue is fixed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10002 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler