Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332430

Summary: References created by template instantiations not found
Product: [Tools] CDT Reporter: Jens Elmenthaler <jens.elmenthaler>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif, zeratul976
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jens Elmenthaler CLA 2010-12-13 07:16:14 EST
Build Identifier: HEAD

Create a source file with the following content:

template<class T>
class A {
public:

  A(T &t)
  {
    t.doSomething();
  }
};

class B {
public:

  void doSomething() {};
};

int main()
{
  B b;
  A<B> a(b);

  return 0;
}

Neither Ctrl-Shift-G nor Ctrl-Alt-H show the reference to B::doSomething().

Reproducible: Always
Comment 1 Nathan Ridge CLA 2014-05-03 00:37:28 EDT
This looks like a duplicate of bug 326070.
Comment 2 Nathan Ridge CLA 2016-12-27 22:38:49 EST

*** This bug has been marked as a duplicate of bug 326070 ***