Bug 202419

Summary: "Declaration not found" reported when accessing typedefed parent class in init list of ctor
Product: [Applications] kdevelop Reporter: Milian Wolff <mail>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: david.nolden.kde, sumeettulsani1
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian stable   
OS: Unspecified   
Latest Commit: Version Fixed/Implemented In: 5.0.0
Sentry Crash Report:
Attachments: The bug has already been Resolved

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