https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128832
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=126524
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is simply how chrono works, especially with values at the extreme ends of
the representation, like ::min() and ::max().
It can be solved by making format use its own versions of chrono::round,
chrono::floor etc. but that only helps format, other uses of chrono still have
the same problem.
Howard usually says this is expected, and the solution is to use a rep type
that doesn't have UB here (e.g. throws or aborts or saturates or whatever makes
sense for your use case).