This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84222] New: [[deprecated]] class complains about internal class usage
- From: "gcc-bugzilla at daryl dot haresign.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Feb 2018 23:51:34 +0000
- Subject: [Bug c++/84222] New: [[deprecated]] class complains about internal class usage
- Auto-submitted: auto-generated
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
};