This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/77264] [7 Regression] std::string's replace gives wrong results with C++17, works with C++11


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]