https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99614

            Bug ID: 99614
           Summary: diagnostic-manager.cc:85: possible missing copy
                    constructor ?
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

>From this morning's static check of the source code of gcc:

trunk.git/gcc/analyzer/diagnostic-manager.cc:85:7: warning: Class
'epath_finder' does not have a copy constructor which is recommended since it
has dynamic memory/resource allocation(s). [noCopyConstructor]
trunk.git/gcc/analyzer/diagnostic-manager.cc:85:7: warning: Class
'epath_finder' does not have a operator= which is recommended since it has
dynamic memory/resource allocation(s). [noOperatorEq]

Class epath_finder has constructor and destructor, but neither
copy constructor nor operator =. This is not standard practice in C++.

Further advice sought.

Reply via email to