[libcxx-commits] [PATCH] D139235: Reapply "[libc++][ranges]Refactor `copy{, _backward}` and `move{, _backward}`"
Alexander Kornienko via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 26 19:33:39 PST 2023
alexfh added a comment.
We've found the cause of the problems @asbirlea reported above: violation of aliasing rules. Something similar to this snippet: https://gcc.godbolt.org/z/3Y9GEMW4e
Thus, again, the change is correct, but it's worth mentioning in the release notes that more aggressive optimizations in std::copy and friends may expose a lot more UB around std::vector and not only.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139235/new/
https://reviews.llvm.org/D139235
More information about the libcxx-commits
mailing list