https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113664
--- Comment #2 from Stefan Krah <stefan at bytereef dot org> --- Thanks for the explanation! I agree that one should not rely on -fno-strict-overflow. In this case, my project is "vendored" in CPython and they compile everything with -fno-strict-overflow, so it's out of my control: https://github.com/python/cpython/issues/108562 mpdecimal itself does not need -fno-strict-overflow.