A Crash about PCHReader

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.

Here is the description:

index-test: /home/polo/llvm/include/llvm/ADT/SmallVector.h:152: T& llvm::SmallVectorTemplateCommon::operator[](unsigned int) [with T = long long unsigned int]: Assertion `begin() + idx < end()’ failed.
0 index-test 0x08576d9e
1 index-test 0x08576c13
2 0x00604400 __kernel_sigreturn + 0
3 libc.so.6 0x00163932 abort + 386
4 libc.so.6 0x00159648 __assert_fail + 248
5 index-test 0x080b7f3e
6 index-test 0x080a987f
7 index-test 0x080a9e1c
8 index-test 0x0807f7a6
9 index-test 0x0804d075 main + 524
10 libc.so.6 0x0014cb56 __libc_start_main + 230
11 index-test 0x0804c5f1
Stack dump:
0. Program arguments: index-test t1.ast
Aborted

it seems to be a problem about the case VERSION_CONTROL_BRANCH_REVISION.

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.

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?

Thx, it works well in c-index-test. Sorry for bothering.

2010/1/29 Douglas Gregor <dgregor@apple.com>