Thx, it works well in c-index-test. Sorry for bothering.<br><br><div class="gmail_quote">2010/1/29 Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On Jan 28, 2010, at 10:34 PM, ียภฺ <<a href="mailto:ioripolo@gmail.com" target="_blank">ioripolo@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I intend to see how libIndex works by using index-test, but I encounter a crash when i practice the example from the CFE internal manual.<br>
</blockquote>
<br></div>
We recently removed index-test from Clang, since most clients should just use the C API (CIndex). Perhaps you had an old index-test from a previous build?<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Here is the description:<br>
<br>
index-test: /home/polo/llvm/include/llvm/ADT/SmallVector.h:152: T& llvm::SmallVectorTemplateCommon<T>::operator[](unsigned int) [with T = long long unsigned int]: Assertion `begin() + idx < end()' failed.<br>

0  index-test 0x08576d9e<br>
1  index-test 0x08576c13<br>
2             0x00604400 __kernel_sigreturn + 0<br>
3  libc.so.6  0x00163932 abort + 386<br>
4  libc.so.6  0x00159648 __assert_fail + 248<br>
5  index-test 0x080b7f3e<br>
6  index-test 0x080a987f<br>
7  index-test 0x080a9e1c<br>
8  index-test 0x0807f7a6<br>
9  index-test 0x0804d075 main + 524<br>
10 libc.so.6  0x0014cb56 __libc_start_main + 230<br>
11 index-test 0x0804c5f1<br>
Stack dump:<br>
0.    Program arguments: index-test t1.ast<br>
Aborted<br>
<br>
it seems to be a problem about the case VERSION_CONTROL_BRANCH_REVISION.<br>
<br>
-- <br>
Best regards!<br>
<br>
Lei Zhang<br></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards!<br><br>Lei Zhang<br>