This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/84222] New: [[deprecated]] class complains about internal class usage


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
};

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]