#2968: add test for C trigraphs
---------------------------------+------------------------------------------
Reporter: duncan | Owner:
Type: task | Status: new
Priority: normal | Milestone: 6.12 branch
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by duncan):
Replying to [comment:3 igloo]:
> Based on what `gcc -Wall` says, `"??)"` is a trigraph but `"?" "?)"`
isn't.
Yes, the GCC page above says:
{{{
The nine trigraphs and their replacements are
Trigraph: ??( ??) ??< ??> ??= ??/ ??' ??! ??-
Replacement: [ ] { } # \ ^ | ~
}}}
It's also got some hints on how to avoid them, though it also seems to
indicate that they're not portable.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2968#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs