https://bugs.kde.org/show_bug.cgi?id=403862
Bug ID: 403862
Summary: Issues with forward declaration
Product: kdevelop
Version: 5.3.1
Platform: Debian testing
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Language Support: CPP (Clang-based)
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Sometimes classes are seen as forward-declared even if in the file there is no
forward declaration or no inclusion to files where there is a forward
declaration of the class.
STEPS TO REPRODUCE
file: x.h:
// forward declaration
class Forward;
class X{...};
file: base.h:
class Base{...};
file: theclass.h:
#include "base.h"
// here chances are that Base is not seen as a fully declared class but as a
forward-declared class, even if there is not direct inclusion to x.h
class TheClass: public Base
{
};
In theclass.h, there is direct inclusion of base.h which specifically declared
Base. But under some circumstances, Base will be seen as forward declared.
--
You are receiving this mail because:
You are watching all bug changes.