<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Incomplete cursor traversal: op[] arguments"
   href="http://llvm.org/bugs/show_bug.cgi?id=22185">22185</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Incomplete cursor traversal: op[] arguments
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>contact@jeaye.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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: <a href="https://gist.github.com/jeaye/6e04855778086c1e5d24">https://gist.github.com/jeaye/6e04855778086c1e5d24</a> the
resulting output is:

<a href="https://gist.github.com/jeaye/1dcb1dea1bdc21ebdcb1">https://gist.github.com/jeaye/1dcb1dea1bdc21ebdcb1</a>

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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>