<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 4, 2009, at 11:38 AM, John Graley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div bgcolor="#ffffff" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><font face="Arial" size="2">Hi All</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">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:</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">int a;</font></div><div><font face="Arial" size="2">int main()<br>{<br>    return ::a;<br>}<br></font></div><div><font face="Arial" size="2">The assertion text reads:</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">assertion "CachedTokens[CachedLexPos-1].getLocation() == Tok.getAnnotationEndLoc() && "The annotation should be until the most recent cached token"" failed: file "PPCaching.cpp", line 95</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">Does anyone know what this is? Also, can I turn off caching of tokens if I'm not worried about speed?</font></div><div><font face="Arial" size="2"></font> </div></div></div></span></blockquote><br></div><div>This should work now, please let me know if you see similar asserts,</div><div><br></div><div>-Chris</div><br></body></html>