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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Jonathan Wakely
<[email protected]>:

https://gcc.gnu.org/g:340b1d384177d3f28a42534f23575c831114571f

commit r15-10716-g340b1d384177d3f28a42534f23575c831114571f
Author: Jonathan Wakely <[email protected]>
Date:   Thu Dec 18 16:39:46 2025 +0000

    libstdc++: Fix chrono::parse to read from wide strings [PR123147]

    When we extract wide characters and insert them into a stringstream to
    be parsed as a floating-point value, we should use a stringstream of
    char, not wchar_t.

    libstdc++-v3/ChangeLog:

            PR libstdc++/123147
            * include/bits/chrono_io.h (_Parser::operator()) <%S>: Use a
            buffer of narrow characters to be parsed by std::from_chars.
            * testsuite/std/time/parse/parse.cc: Check wchar_t parsing.

    (cherry picked from commit 18c306b1f42e3edab6c6fd1a2173d7405a0a9def)

Reply via email to