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

--- Comment #37 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Francois Dumont
<fdum...@gcc.gnu.org>:

https://gcc.gnu.org/g:955202eb2cdbe2bc74c626bce90ee1eac410ad4f

commit r14-10272-g955202eb2cdbe2bc74c626bce90ee1eac410ad4f
Author: François Dumont <frs.dum...@gmail.com>
Date:   Sat Jun 1 22:17:19 2024 +0200

    libstdc++: Fix -Wstringop-overflow warning coming from std::vector
[PR109849]

    libstdc++-v3/ChangeLog:

            PR libstdc++/109849
            * include/bits/vector.tcc
            (std::vector<>::_M_range_insert(iterator, _FwdIt, _FwdIt,
            forward_iterator_tag))[__cplusplus < 201103L]: Add
__builtin_unreachable
            expression to tell the compiler that the allocated buffer is large
enough to
            receive current elements plus the elements of the range to insert.

    (cherry picked from commit 0426be454448f8cfb9db21f4f669426afb7b57c8)

Reply via email to