mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 06:31:42 +00:00
[libc++] [LIBCXX-DEBUG-FIXME] Fix an iterator-invalidation issue in string::assign.
This appears to be a bug in our string::assign: when assigning into a longer string, from a shorter snippet of itself, we invalidate iterators before doing the copy. We should invalidate them afterward. Also drive-by improve the formatting of a function header. Differential Revision: https://reviews.llvm.org/D101675
This commit is contained in:
1 parent
0b10bb7ddd
commit
db9425cb06
2 files changed
+5
-11
No files matched your search
@@ -6,8 +6,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <string>
|
||||
|
||||
// template<class InputIterator>
|
||||
|
||||
Reference in new issue
Block a user