Skip to content

Draft: Fix -XCPP callStack caused duplicated backslashes on Windows #19236

CarrieMY requested to merge CarrieMY/ghc:fix-19236 into master

This is a fix to #19236. In Windows, the preprocessor will add a line "# 1 src\\\\filename.hs" to the source file. "src\\\\filename.hs" will later be used by the parser to reset file name of tokens. So a modification is added to strip the redundant slashes. A test case T19236 is added under directory parser. I marked this as WIP and would like to hear your suggestions.

Edited by Andreas Klebinger

Merge request reports