aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-05-15 19:32:01 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2025-05-19 10:45:26 +0100
commit4bc5697341f1eda3b20c16dcf173948b2d1bd5c8 (patch)
tree50284b041b8dede3682bf2fc7e087f9b0e5f8803 /gcc/coverage.c
parentbeb0ffd36eedf0542d7f408e87efee4bee3150f8 (diff)
downloadgcc-4bc5697341f1eda3b20c16dcf173948b2d1bd5c8.zip
gcc-4bc5697341f1eda3b20c16dcf173948b2d1bd5c8.tar.gz
gcc-4bc5697341f1eda3b20c16dcf173948b2d1bd5c8.tar.bz2
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 <tkaminsk@redhat.com> (cherry picked from commit 1ed7585bf60ba9940ca5dc6d2c72dba86eea7b4d)
Diffstat (limited to 'gcc/coverage.c')
0 files changed, 0 insertions, 0 deletions