aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/ChangeLog-2019
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-12-12 12:51:49 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-12-12 14:00:09 +0000
commitdc94eaab008165698a1161c757db96fc701103a2 (patch)
tree3d1790f6c527846af0f7d932343eef4c467a50b6 /libstdc++-v3/ChangeLog-2019
parent6c0f9584013dbedeacacb041d40ce9005b902df0 (diff)
downloadgcc-dc94eaab008165698a1161c757db96fc701103a2.zip
gcc-dc94eaab008165698a1161c757db96fc701103a2.tar.gz
gcc-dc94eaab008165698a1161c757db96fc701103a2.tar.bz2
libstdc++: Add a test checking for chrono::duration overflows
This test fails if chrono::days::rep or chrono::years::rep is a 32-bit type, because a large days or years value silently overflows a 32-bit integer when converted to seconds. It would be conforming to implement chrono::days as chrono::duration<int32_t, ratio<86400>>, but would make this overflow case more likely. Similarly for chrono::years, chrono::months and chrono::weeks. This test is here to remind us not to make that change lightly. libstdc++-v3/ChangeLog: * testsuite/20_util/duration/arithmetic/overflow_c++20.cc: New test.
Diffstat (limited to 'libstdc++-v3/ChangeLog-2019')
0 files changed, 0 insertions, 0 deletions