This happens with both libclang 3.5 (1:3.5-4ubuntu2 (Ubuntu 14.10 Utopic)) and libclang 3.6 (1:3.6~+rc2-2ubuntu1~xedgers14.10.1 (Ubuntu 14.10 Utopic, https://launchpad.net/~xorg-edgers/+archive/ubuntu/ppa)). I assume it happens with other versions as well. It notably does not crash for 3.4 (1:3.4.2-10ubuntu1 on Utopic).
main.cpp
(704 bytes, text/x-c++src)Created attachment 13989 Crashes libclang
The following program causes libclang to print "libclang: crash detected in code completion" and return null for the last call:
This happens with both libclang 3.5 (1:3.5-4ubuntu2 (Ubuntu 14.10 Utopic)) and libclang 3.6 (1:3.6~+rc2-2ubuntu1~xedgers14.10.1 (Ubuntu 14.10 Utopic, https://launchpad.net/~xorg-edgers/+archive/ubuntu/ppa)). I assume it happens with other versions as well. It notably does not crash for 3.4 (1:3.4.2-10ubuntu1 on Utopic).