Details
-
Bug
-
Status: Reopened
-
Minor
-
Resolution: Unresolved
-
4.1.3, 4.1.4, 4.2.0
-
None
-
all
Description
This test fails:
#include <iostream>
#include <string>
static const char* test = "babc";
int main (void)
{
std::string s ("abc");
s.replace (s.begin (), s.begin (), s.begin () + 1, s.begin () + 2);
std::cout << "Expected " << test << " and got " << s << '\n';
return 0;
}
The output is "Expected babc and got aabc".
See details here:
http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200604.mbox/%3c44337C76.4020909@roguewave.com%3e
Attachments
Attachments
Issue Links
- is depended upon by
-
STDCXX-629 std::string::assign (reverse_iterator, reverse_iterator) assigning self incorrect
- Reopened
-
STDCXX-632 std::string::insert (iterator, InputIterator, InputIterator) inserting self incorrect
- Reopened
-
STDCXX-438 std::string::append (InputIterator, InputIterator) appending self incorrect
- Closed
-
STDCXX-631 21.string.replace test fails
- Closed