diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2018-07-04 18:13:11 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2018-07-04 18:13:11 +0000 |
commit | 96eb9df619ab1ba907c9dc6002f6bbc326e884fb (patch) | |
tree | 7545255f80b50f3a2975c18b7d3f3c41b2b2d040 /libstdc++-v3/include/debug | |
parent | fa9371cae02b7ddee8f67e6ce8f1cddc3d8fc0e2 (diff) | |
download | gcc-96eb9df619ab1ba907c9dc6002f6bbc326e884fb.zip gcc-96eb9df619ab1ba907c9dc6002f6bbc326e884fb.tar.gz gcc-96eb9df619ab1ba907c9dc6002f6bbc326e884fb.tar.bz2 |
re PR libstdc++/86272 (__gnu_debug::string uses undefined __glibcxx_check_insert_range2)
2018-07-04 François Dumont <fdumont@gcc.gnu.org>
PR libstdc++/86272
* include/debug/string
(__gnu_debug::basic_string<>::insert<_Ite>(const_iterator, _Ite, _Ite)):
Use __glibcxx_check_insert_range.
* 21_strings/basic_string/cons/char/1.cc: Adapt test to use
__gnu_debug::string when _GLIBCXX_DEBUG.
* 21_strings/basic_string/init-list.cc: Likewise.
* 21_strings/basic_string/modifiers/insert/char/1.cc: Likewise.
* 21_strings/basic_string/modifiers/insert/char/2.cc: Likewise.
* 21_strings/basic_string/modifiers/insert/char/83328.cc: Likewise.
* 21_strings/basic_string/types/1.cc: Likewise.
From-SVN: r262417
Diffstat (limited to 'libstdc++-v3/include/debug')
-rw-r--r-- | libstdc++-v3/include/debug/string | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/debug/string b/libstdc++-v3/include/debug/string index aa611b2..ec4340c 100644 --- a/libstdc++-v3/include/debug/string +++ b/libstdc++-v3/include/debug/string @@ -124,7 +124,7 @@ template<typename _CharT, typename _Traits = std::char_traits<_CharT>, : _Base(__str, __pos, __n, __a) { } basic_string(const _CharT* __s, size_type __n, - const _Allocator& __a = _Allocator()) + const _Allocator& __a = _Allocator()) : _Base(__gnu_debug::__check_string(__s, __n), __n, __a) { } basic_string(const _CharT* __s, const _Allocator& __a = _Allocator()) @@ -566,7 +566,7 @@ template<typename _CharT, typename _Traits = std::char_traits<_CharT>, insert(const_iterator __p, _InputIterator __first, _InputIterator __last) { typename __gnu_debug::_Distance_traits<_InputIterator>::__type __dist; - __glibcxx_check_insert_range2(__p, __first, __last, __dist); + __glibcxx_check_insert_range(__p, __first, __last, __dist); typename _Base::iterator __res; if (__dist.second >= __dp_sign) |