[Bug c++/87262] Static Code Analysis Findings

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 10 11:38:00 GMT 2018


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I looked at a few of these and they're complete nonsense.

This is not a redundant initialization in std::swap:

      _Tp __tmp = _GLIBCXX_MOVE(__a);
      __a = _GLIBCXX_MOVE(__b);
      __b = _GLIBCXX_MOVE(__tmp);

And the memory leaks are not leaks.


More information about the Gcc-bugs mailing list