http://llvm.org/bugs/show_bug.cgi?id=20973
Bug ID: 20973
Summary: Code completion of Template members is not working
Product: new-bugs
Version: 3.4
Hardware: Macintosh
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Consider the following code example:
#include <vector>
template<class T>
class foo {
public:
void Init();
private:
struct bar {
int foobar;
};
bar one_bar;
std::vector<foo<T>::bar> some_bars;
};
template<class T>
void foo<T>::Init(){
one_bar.foobar = 0; // completion as expected
some_bars.at(0).foobar = 0; // no completion neither for "at" nor for
"foobar"
// ^ ^ no completions for these positions!
}
The code completion for "some_bars" is not working at all while "one_bar"
behaves as expected.
Clang is called as follows:
clang -cc1 -x c++ -fsyntax-only -code-completion-at foo.cpp:20:21 foo.cpp
It does not give any output.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs