[PATCH] Don't restrict legal UCNs when preprocessing assembly

Richard Smith richard at metafoo.co.uk
Fri Oct 18 17:55:13 PDT 2013


Please provide a testcase.


On Fri, Oct 18, 2013 at 5:43 PM, Justin Bogner <mail at justinbogner.com>wrote:

> The C and C++ standards disallow using universal character names to
> refer to some characters, such as basic ascii and control characters,
> so we reject these sequences in the lexer. However, when the
> preprocessor isn't being used on C or C++, it doesn't make sense to
> apply these restrictions.
>
> Notably, accepting these characters avoids issues with unicode escapes
> when GHC uses the compiler as a preprocessor on haskell sources.
>
> Okay to commit?
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131018/10c6361a/attachment.html>


More information about the cfe-commits mailing list