title: Eclipse CDT can not resolve method in template class
body: <p>I have an issue with Eclipse CDT indexer/code analyzer. When I write the following code in the editor, it shows me an error on <code>const int* p = x.f();</code> - <code>Invalid arguments Candidates are: int * f()</code>. So for some reason it doesn't recognize method <code>const T* f() const</code> in class B.</p>
  
  <pre><code>template&lt;typename T&gt;
  class A {
  public:
      const T* f() const { return 0; }
  };
  
  template&lt;typename T&gt;
  class B : A&lt;T&gt; {
  public:
      using A&lt;T&gt;::f;
      T* f() { return 0; }
  };
  
  void main() {
      const B&lt;int&gt; x;
      const int* p = x.f();
  }
  </code></pre>
  
  <p>Any ideas why does it happen and how to solve the problem?</p>