Bug 200057

Summary: code completion does not work with inherited templates
Product: [Applications] kdevelop Reporter: Armin Berres <armin>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: 4.0.0   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Armin Berres 2009-07-13 18:18:00 UTC
Version:           svn995594 (using KDE 4.2.96)
Installed from:    Compiled From Sources

Consider the following code:

####################################################################################
template <class T> class Array
{
  public:
    void size() {}
};

template <class T> class NamedArray : public Array<T>
{
  public:
    void test()
    {
      this->size();
    }
};
####################################################################################
Kdevelop is not aware that this->size() is a member of the class Array and underlines the call red.
One interesting thing is, that inheriting from "Array<int>" instead of "Array<T>" makes Kdevelop happy.
Comment 1 Andreas Pakulat 2009-07-26 03:15:39 UTC
SVN commit 1002451 by apaku:

Only re-run cmake with arguments if there's no CMakeCache.txt so we
don't override things that the user changed externally or by editing the
cache.
BUG:200057

 M  +11 -5     cmakejob.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1002451