[PATCH] PR15664 - -frewrite-includes doesn't handle Windows UTF-8 BOM

Lubos Lunak l.lunak at centrum.cz
Wed Nov 27 23:50:45 PST 2013

On Thursday 28 of November 2013, Alp Toker wrote:
> While trying to get this test working, I noticed that removing the
> trailing EOF from rewrite-includes-bom.c causes a lexer crash:
> Assertion failed: (PP && "Cannot reset token mode without a
> preprocessor"), function resetExtendedTokenMode, file
> /Users/alp/Projects/llvm-work/upstream/clang/lib/Lex/Lexer.cpp, line 134.
> Looks like a pre-existing problem though, will file a PR.

 See "[PATCH] Avoid lexer crash with -frewrite-includes".

 Lubos Lunak

More information about the cfe-commits mailing list