[Bug libstdc++/108409] std::chrono::current_zone() doesn't work on AIX or Windows

2023-11-06 Thread mac at mcrowe dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108409

Mike Crowe  changed:

   What|Removed |Added

 CC||mac at mcrowe dot com

--- Comment #7 from Mike Crowe  ---
ICU tries to solve this problem with a table at
https://github.com/unicode-org/icu/blob/fa6a4661ba002c1c1ee68cbf5c7ac9af75132d07/icu4c/source/common/putil.cpp#L802
and other heuristics in the same file.

Based on my understanding, the table is incorrect for the Australian zones and
US/Aleutian (it gets the short names wrong) and it's missing the non-DST US
zones.

I'm not sure if it's worth going to these lengths to try to map POSIX time zone
strings to Olson names, but I thought I'd provide the link in case it's useful.

[Bug libstdc++/58931] condition_variable::wait_until overflowed by large time_point

2020-10-03 Thread mac at mcrowe dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58931

Mike Crowe  changed:

   What|Removed |Added

 CC||mac at mcrowe dot com

--- Comment #6 from Mike Crowe  ---
This problem isn't as serious now that waiting on std::chrono::steady_clock
doesn't use the generic wait_until implemenation, but it's worth fixing
regardless.

I have a reproduction case and Aaron's fix in attachment 43261 (with some minor
tweaks to accommodate the recent addition of __detail::ceil) still appears to
work.

[Bug libstdc++/93542] std::future::wait_for should use monotonic clock

2020-10-03 Thread mac at mcrowe dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93542

Mike Crowe  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #3 from Mike Crowe  ---
The patches mentioned in comment 2 landed for GCC 11 as
87fce1923fcc8d6ef508500475c149082dc9d338 and
01d412ef36f56c6961858f4d3d395d000e3f1c06 respectively. It seems that I failed
to include the bug number in the commit message. :(

[Bug libstdc++/91486] future::wait_for and shared_timed_mutex::wait_for do not work properly with float duration

2020-10-03 Thread mac at mcrowe dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91486

--- Comment #11 from Mike Crowe  ---
Created attachment 49305
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49305=edit
Small fix to f9ddb696a289cc48d24d3d23c0b324cb88de9573

[Bug libstdc++/91486] future::wait_for and shared_timed_mutex::wait_for do not work properly with float duration

2020-10-03 Thread mac at mcrowe dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91486

--- Comment #10 from Mike Crowe  ---
Unfortunately https://gcc.gnu.org/g:f9ddb696a289cc48d24d3d23c0b324cb88de9573
mentioned in comment 9 contains a small bug (all my fault) that Jonathan
pointed out in
https://gcc.gnu.org/pipermail/libstdc++/2020-September/051004.html . I've
posted a fix in
https://gcc.gnu.org/pipermail/libstdc++/2020-September/051025.html and I'll
attach the patch here too.