[LLVMbugs] [Bug 16993] Assign rvalue to self

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 25 07:21:01 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16993

Howard Hinnant <hhinnant at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Howard Hinnant <hhinnant at apple.com> ---
After:

    std::move(a);

a is in a valid but unspecified state.  That means that you can not reliably
perform any operation on a that has a precondition.

   a[100]

has a precondition that a.size() > 100.  And so this may or may not work after:

   std::move(a);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130825/c2bfe5ab/attachment.html>


More information about the llvm-bugs mailing list