[Bug other/94629] 10 issues located by the PVS-studio static analyzer

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Fri Apr 17 15:10:10 GMT 2020


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

--- Comment #14 from David Binderman <dcb314 at hotmail dot com> ---
There is also this one from cppcheck:

trunk.git/libstdc++-v3/include/debug/formatter.h:302:40: warning: Redundant
assignment of '_M_variant._M_iterator._M_constness' to itself. [selfAssignment]

Source code is

      _M_variant._M_iterator._M_constness =
      _M_variant._M_iterator._M_constness =
        __it._S_constant() ? __const_iterator : __mutable_iterator;


More information about the Gcc-bugs mailing list