Bug 200057 - code completion does not work with inherited templates
Summary: code completion does not work with inherited templates
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: 4.0.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 18:18 UTC by Armin Berres
Modified: 2009-07-26 03:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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