[cfe-dev] Assert in lexer
John Graley
john.graley at ntlworld.com
Sun Jan 4 11:38:24 PST 2009
Hi All
I'm using clang as a parser for another project (ie I have my own Actions implementation) and I get an assert failure on the following code:
int a;
int main()
{
return ::a;
}
The assertion text reads:
assertion "CachedTokens[CachedLexPos-1].getLocation() == Tok.getAnnotationEndLoc() && "The annotation should be until the most recent cached token"" failed: file "PPCaching.cpp", line 95
Does anyone know what this is? Also, can I turn off caching of tokens if I'm not worried about speed?
Cheers, John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090104/bc15a06a/attachment.html>
More information about the cfe-dev
mailing list