[GHC] #10146: Clang CPP adds extra newline character
GHC
ghc-devs at haskell.org
Sun Mar 8 14:58:52 UTC 2015
#10146: Clang CPP adds extra newline character
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner:
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.4
Resolution: | Keywords: cpp
Operating System: MacOS X | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by rwbarton):
* status: new => infoneeded
Comment:
How is this a GHC issue? That is, what change to GHC would you like to see
here?
It sounds like you would like clang's CPP to be "fixed", but I don't think
it is really buggy, since the semantics of CPP are defined in terms of
tokenized C programs, and adding a trailing newline does not change that
tokenization. So, I would not be too hopeful about submitting a bug
report, but you could try.
I also don't really understand what you are trying to do at all here,
isn't the CPP phase quite irreversible regardless of this trailing newline
issue? Could you go into more detail about your use case?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10146#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list