Bug 279970 - For Template Class,Cannot Parse Base-Class' Public and Protected Member Function and Member Data in Its Extend Class
Summary: For Template Class,Cannot Parse Base-Class' Public and Protected Member Funct...
Status: RESOLVED DUPLICATE of bug 220287
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.2.3
Platform: Ubuntu Linux
: HI normal
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 13:37 UTC by julee
Modified: 2012-10-26 21:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description julee 2011-08-12 13:37:57 UTC
Version:           4.2.3 (using KDE 4.7.0) 
OS:                Linux

For Template Class,Kdevelop cannot parse base-class' public and protected member function and member data in its extend class!
But it does well for non-template class! Kdevelop also works well for template class outside the extend class's member function.

Reproducible: Always

Steps to Reproduce:
For such a header file:

#ifndef BASE_H
#define BASE_H

template<class T>
class Base
{
public:
    int a;
    void base_func() {}
};

template<class T>
class Extend : public Base<T>
{
public:
    void extend_func()
    {
	this->base_func();
	this->a = 5;
    }
};

#endif // BASE_H

Kdevelop cannot parse  "this->base_func()" "	this->a "!


Actual Results:  

Kdevelop cannot parse  "this->base_func()" "	this->a "!

Expected Results:  

Kdevelop should parse  "this->base_func()" "	this->a "!

Nothing added.
This bug make users who use c++ template troublesome!
Could this bug repaire?
Comment 1 julee 2011-08-28 16:32:42 UTC
Could this bug confirmed?
This bug has make many troubles for develop.
Comment 2 Milian Wolff 2011-08-29 20:00:54 UTC
confirmed
Comment 3 Olivier.jg 2012-10-26 21:22:20 UTC

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