http://llvm.org/bugs/show_bug.cgi?id=22185
Bug ID: 22185
Summary: Incomplete cursor traversal: op[] arguments
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Given the code (as foo.cpp):
struct foo
{
void operator [](int)
{ }
static int constexpr index{ 1 };
};
foo& get()
{ static foo f; return f; }
int main()
{
get()[foo::index];
}
and the test code: https://gist.github.com/jeaye/6e04855778086c1e5d24 the
resulting output is:
https://gist.github.com/jeaye/1dcb1dea1bdc21ebdcb1
Note, starting on line 46, we should see a type ref (foo) and a variable/member
ref (index), but we only see DeclRefExpr.
Unlike the other incomplete cursor traversal bugs, I have been unable to find a
working solution for this, so I have no commits.
--
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