https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101411
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:df115674b39d4004252b7d5e41d9751f2b77b0d8 commit r11-8739-gdf115674b39d4004252b7d5e41d9751f2b77b0d8 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)