
#13666: The gcc wrapper can't handle trailing backslashes ---------------------------------+---------------------------------------- Reporter: niklasl | Owner: (none) Type: bug | Status: patch Priority: low | Milestone: Component: Driver | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Comment (by Phyx-): Unless I'm misunderstanding, is it not sufficient to add `|| *src == '\\'` to line 62? https://github.com/ghc/ghc/blob/master/driver/utils/cwrapper.c#L62, that would be logically more consistent because it means you're adding a character to the list of characters that need escaping. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13666#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler