From: Jonathan Wakely Date: Thu, 21 Apr 2022 13:12:25 +0000 (+0100) Subject: libstdc++: Deprecate __gnu_cxx::rope::erase(size_type) [PR102048] X-Git-Tag: releases/gcc-10.4.0~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd1fc4900fd101f8fa22883b6ac31e6f7601373;p=thirdparty%2Fgcc.git libstdc++: Deprecate __gnu_cxx::rope::erase(size_type) [PR102048] This function is broken, and has been removed for GCC 11 and 12. Deprecate it for GCC 10. libstdc++-v3/ChangeLog: PR libstdc++/102048 * include/ext/rope (rope::erase(size_type)): Deprecate broken function. --- diff --git a/libstdc++-v3/include/ext/rope b/libstdc++-v3/include/ext/rope index fb7bdb0d6f49..5597ecb85629 100644 --- a/libstdc++-v3/include/ext/rope +++ b/libstdc++-v3/include/ext/rope @@ -2388,7 +2388,7 @@ protected: } // Erase, single character - void + _GLIBCXX_DEPRECATED void erase(size_type __p) { erase(__p, __p + 1); }