Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Indexer & context assist problems with templates

Hi,
I am using CDT:cdt-master-6.0.0-I200903060602 & using eclipse 3.5M5,
and came across the following problems using templates.
Follows the test example:


#include <stdio.h>

template <typename T>
class A{
public:
	A(){}
	~A(){}
};

template <typename T>
class B:public A<T>{
public:	
	B(){}
	~B(){}

	void doit(){
		printf("B::doit()\n");
	}
};


int main()
{
	B<int> b;
	b.doit();
}



a) When typing "b."  the content assist only shows:
class A
A(void)
class B
B(void)

b) When I try to find usages on b::doit() I get 0 references.

Just want to make sure these are problems, prior to submitting a bug.

Thanks.


Back to the top