Rip-Rip/clang_complete — Issue #128: Simple auto-completion fails in try/catch
Author: bertjwregeer
Created: 2012-02-12 16:34:29+00:00
State: open

I have the following sample program:

#include
#include

int main() {
try {
// Do something here
std::string("test");
} catch (std::exception const& e) {
std::cerr << e.what() << std::endl;
}

std::
}

When I am on line 14, right after the `std::` and I attempt to auto-complete my quickfix window pops open and tells me the following:

test.cc|9 col 22 error| use of undeclared identifier 'e'

This however is valid C++, and should work without issues. I am not sure why clang is complaining about it.