[GHC] #10044: Wrong line number reported with CPP and line beginning with #
GHC
ghc-devs at haskell.org
Thu Jan 29 19:31:10 UTC 2015
#10044: Wrong line number reported with CPP and line beginning with #
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.10.1-rc2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Looks like a bug in clang's C preprocessor (I get the expected behavior
with gcc's):
{{{
rwbarton at morphism:/tmp$ clang -E -x assembler-with-cpp Bug.hs
# 1 "Bug.hs"
# 1 "<built-in>" 1
# 1 "Bug.hs" 2
{-# LANGUAGE CPP #-}
module Bug where
{-
# hi there!
-}
*
}}}
Why did it add a blank line after `# hi there!`?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10044#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list