Summary: | Implicitly declared class considered as subclass | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | KiloAlphaIndia <kilo> |
Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kilo |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | patch for kdevelop/plugins/clang/duchain/builder.cpp |
Description
KiloAlphaIndia
2016-10-09 10:04:39 UTC
I have now looked this up in the (draft) C++ Standard N3797. The section 3.4.4 paragraph 3 gives a very obvious example: struct Node { struct Node* Next; // OK: Refers to Node at global scope struct Data* Data; // OK: Declares type Data // at global scope and member Data }; Ups. Sorry failed to format it correctly I have now looked this up in the (draft) C++ Standard N3797. The section 3.4.4 paragraph 3 gives a very obvious example: struct Node { struct Node* Next; // OK: Refers to Node at global scope struct Data* Data; // OK: Declares type Data // at global scope and member Data }; This is the same for the keyword class. Can anybody mark this as CONFIMED please. Created attachment 119557 [details]
patch for kdevelop/plugins/clang/duchain/builder.cpp
fix inline class declaration context
|