https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84222
Bug ID: 84222
Summary: [[deprecated]] class complains about internal class
usage
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc-bugzilla at daryl dot haresign.com
Target Milestone: ---
If I mark a class with the [[deprecated]] annotation, it complains when the
class uses its own name in the implementation:
class [[deprecated]] C {
public:
C() {}
C(const C&) = default; // emits a deprecation warning
C(C&&) = delete; // also emits a warning
};