@john Ok, here's the solution: it's due to C++20 defining only the new operator<=>() on chrono types, combined with a missed optimization:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100322#c2
Conversation
Notices
-
Bernie (codewiz@mstdn.io)'s status on Monday, 06-Feb-2023 08:31:38 UTC
Bernie
-
Bernie (codewiz@mstdn.io)'s status on Monday, 06-Feb-2023 08:34:23 UTC
Bernie
@john And here's the patch adding the new arithmetic simplification ahead of the GCC 12 release:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94589
-