diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-01-21 18:11:16 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-01-21 22:15:06 +0000 |
commit | fba15da8fa518bfb8d3e061795bc3ca2dea01d27 (patch) | |
tree | 065a4951ba9872678f8b218818b339c72d0757b0 /gcc/cfgrtl.cc | |
parent | 86de9b66480b710202a2898cf513db105d8c432f (diff) | |
download | gcc-fba15da8fa518bfb8d3e061795bc3ca2dea01d27.zip gcc-fba15da8fa518bfb8d3e061795bc3ca2dea01d27.tar.gz gcc-fba15da8fa518bfb8d3e061795bc3ca2dea01d27.tar.bz2 |
libstdc++: Fix std::chrono::file_clock conversions for low-precision times
THe std::chrono::file_clock conversions were not using common_type and
so failed to compile when converting anything that should have increased
precision after arithmetic with a std::chrono::seconds value.
libstdc++-v3/ChangeLog:
* include/bits/chrono.h (__file_clock::from_sys)
(__file_clock::to_sys, __file_clock::_S_from_sys)
(__file_clock::_S_to_sys): Use common_type for return type.
* testsuite/std/time/clock/file/members.cc: Check round trip
conversion for time with lower precision that seconds.
Diffstat (limited to 'gcc/cfgrtl.cc')
0 files changed, 0 insertions, 0 deletions