https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101411
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:a34c0973c994d750fb1231da7af96038417b7fe3 commit r10-9981-ga34c0973c994d750fb1231da7af96038417b7fe3 Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Jul 12 16:09:34 2021 +0100 libstdc++: Constrain std::as_writable_bytes [PR101411] The std::as_writable_bytes function should be constrained to only accept writable spans. Currently it can be called but then gives an error in the function body. Signed-off-by: Jonathan Wakely <jwak...@redhat.com> libstdc++-v3/ChangeLog: PR libstdc++/101411 * include/std/span (as_writable_bytes): Add requires-clause. * testsuite/23_containers/span/101411.cc: New test. (cherry picked from commit 9d4393af9d2b37b78eb5b1f84f5d4da3a6f7fba6)