[cfe-dev] Assert in lexer

Chris Lattner clattner at apple.com
Sun Jan 4 17:41:01 PST 2009


On Jan 4, 2009, at 11:38 AM, John Graley wrote:

> 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?
>

This should work now, please let me know if you see similar asserts,

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090104/23fce966/attachment.html>


More information about the cfe-dev mailing list