https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107871
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:9cce91a63dcc40cb39e68f6a771e891e51c51946 commit r13-4527-g9cce91a63dcc40cb39e68f6a771e891e51c51946 Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Dec 5 21:38:53 2022 +0000 libstdc++: Add casts for integer-like difference type [PR107871] libstdc++-v3/ChangeLog: PR libstdc++/107871 * include/std/format (_Iter_sink::_M_overflow): Add cast to size_t. (_Iter_sink<CharT, contiguous_iterator auto>::_M_make_span): Use typedef instead of decltype. * testsuite/std/format/functions/107871.cc: New test.