This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77264] [7 Regression] std::string's replace gives wrong results with C++17, works with C++11
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Aug 2016 11:04:45 +0000
- Subject: [Bug c++/77264] [7 Regression] std::string's replace gives wrong results with C++17, works with C++11
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-77264-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77264
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ville at gcc dot gnu.org
Target Milestone|--- |7.0
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Looks as if r239370 is the culprit as it works when reverting the patch:
+2016-08-11 Ville Voutilainen <ville.voutilainen@gmail.com>
+
+ Implement LWG 2758.
+ * include/bits/basic_string.h
+ (append(__sv_type, size_type, size_type)): Turn into a template,
+ change parameter type, constrain, add a conversion to __sv_type
+ from the dependent parameter type.
+ (assign(__sv_type, size_type, size_type)): Likewise.
+ (insert(size_type, __sv_type, size_type, size_type)): Likewise.
+ (replace(size_type, size_type, __sv_type, size_type, size_type)):
+ Likewise.
+ (compare(size_type, size_type,__sv_type, size_type, size_type)):
+ Likewise.
+ * testsuite/21_strings/basic_string/lwg2758.cc: New.