[Bug c++/96188] -Wstringop-overflow false positive on std::vector::push_back with -O3

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 13 17:10:45 GMT 2020


Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=94335
            Summary|-Wstringop-overflow false   |-Wstringop-overflow false
                   |positive                    |positive on
                   |                            |std::vector::push_back with
                   |                            |-O3

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
pr94335 talks about some of the issues/challenges with pointers in this
context.  (The problem discussed in pr95353 has a similar test case as this one
but it's due to an already fixed bug in the warning.)

More information about the Gcc-bugs mailing list