[clazy] [Bug 388677] New: rule-of-three warning in class that is not copyable

Albert Astals Cid bugzilla_noreply at kde.org
Mon Jan 8 13:10:54 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=388677

            Bug ID: 388677
           Summary: rule-of-three warning in class that is not copyable
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: aacid at kde.org
                CC: smartins at kde.org
  Target Milestone: ---

Created attachment 109734
  --> https://bugs.kde.org/attachment.cgi?id=109734&action=edit
main.cpp

Clazy says

main.cpp:19:1: warning: B has dtor but not copy-ctor, copy-assignment
[-Wclazy-rule-of-three]
class B : public A
^
1 warning generated.

on the attached code.

I think the warning doesn't make sense since B is not copyable (as demonstrated
if you uncomment the commented code in main)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list