commit | b4e67cfd422b7e6ca079adecfa13b1055ba15b3f | [log] [tgz] |
---|---|---|
author | Howard Hinnant <hhinnant@apple.com> | Thu Apr 18 15:02:57 2013 +0000 |
committer | Howard Hinnant <hhinnant@apple.com> | Thu Apr 18 15:02:57 2013 +0000 |
tree | bd582e1c71d7fcb0d28350cdc5094831a5e5fb53 | |
parent | 2062f377728e6c2a77842ca5b2c6428aab605ebc [diff] |
After years of telling people: 'If you ever find any of my code that self-move-assigns, send me a bug report.' Somebody finally took me up on it. vector::erase(begin(), begin()) does a self-move-assign of every element in the vector, leaving all of those elements in an unspecified state. I checked the other containers for this same bug and did not find it. Added test case. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@179760 91177308-0d34-0410-b5e6-96231b3b80d8