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

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

https://gcc.gnu.org/g:7206d4b9f95a48ab11cebc51bb10a67964a129f3

commit r13-10318-g7206d4b9f95a48ab11cebc51bb10a67964a129f3
Author: Jonathan Wakely <[email protected]>
Date:   Thu May 15 19:32:01 2025 +0100

    libstdc++: Fix std::format of chrono::local_days with {} [PR120293]

    Formatting of chrono::local_days with an empty chrono-specs should be
    equivalent to inserting it into an ostream, which should use the
    overload for inserting chrono::sys_days into an ostream. The
    implementation of empty chrono-specs in _M_format_to_ostream takes some
    short cuts, and that wasn't being done correctly for chrono::local_days.

    libstdc++-v3/ChangeLog:

            PR libstdc++/120293
            * include/bits/chrono_io.h (_M_format_to_ostream): Add special
            case for local_time convertible to local_days.
            * testsuite/std/time/clock/local/io.cc: Check formatting of
            chrono::local_days.

    Reviewed-by: Tomasz KamiÅski <[email protected]>
    (cherry picked from commit 1ed7585bf60ba9940ca5dc6d2c72dba86eea7b4d)

Reply via email to