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

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

https://gcc.gnu.org/g:d26c3e4f733fcb07d90680491dd1d7a9d08c4705

commit r11-9920-gd26c3e4f733fcb07d90680491dd1d7a9d08c4705
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Thu Apr 21 11:26:49 2022 +0100

    libstdc++: Remove bogus assertion in std::from_chars [PR105324]

    I'm not sure what I was thinking when I added this assertion, maybe it
    was supposed to be alignment == 1 (which is what the pmr::string actually
    uses). The simplest fix is to just remove the assertion.

    The assertion is no longer enabled by default on trunk, but it's still
    there for the --enablke-libstdcxx-debug build, and is still wrong. The
    fix is needed on the gcc-11 branch.

    libstdc++-v3/ChangeLog:

            PR libstdc++/105324
            * src/c++17/floating_from_chars.cc (buffer_resource::do_allocate):
            Remove assertion.
            * testsuite/20_util/from_chars/pr105324.cc: New test.

    (cherry picked from commit cf37107522f465d9e12af01ba68d2d1df0f18d46)

Reply via email to