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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:5c2c5805304da2436f4a749d357eee34eae9d792

commit r12-10537-g5c2c5805304da2436f4a749d357eee34eae9d792
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Mon Mar 18 13:00:17 2024 +0000

    libstdc++: Begin lifetime of storage in std::vector<bool> [PR114367]

    This doesn't cause a problem with GCC, but Clang correctly diagnoses a
    bug in the code. The objects in the allocated storage need to begin
    their lifetime before we start using them.

    This change uses the allocator's construct function instead of using
    std::construct_at directly, in order to support fancy pointers.

    libstdc++-v3/ChangeLog:

            PR libstdc++/114367
            * include/bits/stl_bvector.h (_M_allocate): Use allocator's
            construct function to begin lifetime of words.

    (cherry picked from commit 16afbd9c9c4282d56062cef95e6eccfdcf3efe03)
  • [Bug libstdc++/114367] std::vec... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to