public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/99614] New: diagnostic-manager.cc:85: possible missing copy constructor ?
@ 2021-03-16 11:14 dcb314 at hotmail dot com
  2021-03-16 11:39 ` [Bug analyzer/99614] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2021-03-16 11:14 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-19 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 11:14 [Bug analyzer/99614] New: diagnostic-manager.cc:85: possible missing copy constructor ? dcb314 at hotmail dot com
2021-03-16 11:39 ` [Bug analyzer/99614] " rguenth at gcc dot gnu.org
2021-03-16 12:13 ` redi at gcc dot gnu.org
2021-03-19  1:24 ` dmalcolm at gcc dot gnu.org
2021-03-19 13:04 ` cvs-commit at gcc dot gnu.org
2021-03-19 13:09 ` dmalcolm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).