Bug 202419 - "Declaration not found" reported when accessing typedefed parent class in init list of ctor
Summary: "Declaration not found" reported when accessing typedefed parent class in ini...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Debian stable Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 19:32 UTC by Milian Wolff
Modified: 2016-12-13 08:02 UTC (History)
2 users (show)

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


Attachments
The bug has already been Resolved (561.56 KB, image/png)
2016-05-09 06:23 UTC, Sumeet Tulsani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milian Wolff 2009-08-03 19:32:05 UTC
Version:            (using KDE 4.2.4)
Installed from:    Debian stable Packages

Example code:
~~~
template<typename T>
class AbstractBase {
  AbstractBase(T) {}
};

typedef AbstractBase<int> Base;

class Child : public Base {
public:
  Child() : Base(1) {}
};
~~~

What you will see: "Base" in the init list of the Child ctor will be underlined and the problemreporter shows "Declaration not found - Base" error.
Comment 1 Kevin Funk 2012-12-22 23:44:01 UTC
Still a problem, lowering priority, though.
Comment 2 Sumeet Tulsani 2016-05-09 06:23:41 UTC
Created attachment 98850 [details]
The bug has already been Resolved

As shown in the screenshot the child class constructor recognizes the base in the init list.
Comment 3 Kevin Funk 2016-05-09 08:19:44 UTC
Appears resolved under KDevelop 5