https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85858
Bug ID: 85858 Summary: -Weffc++ should not require copy ctor for const pointers Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msharov at users dot sourceforge.net Target Milestone: --- -Weffc++ warns about missing operator= and copy ctor in a class containing a const pointer. The intent of the warning is to detect manually allocated memory owned by the class, and to ensure copying operation was explicitly considered. When the pointer is const, it can not point to owned memory and so should not result in a warning.