[LLVMbugs] [Bug 19458] New: warn on pessimizing call to std::move

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 16 17:12:29 PDT 2014


            Bug ID: 19458
           Summary: warn on pessimizing call to std::move
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: delesley at google.com, dgregor at apple.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified

For instance:

  T f() {
    T v = { ... };
    // ...
    return std::move(v);

The move would be elided without the call to `std::move`.

We should warn in any case where an explicit call to `std::move` disables move

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/20140417/8c32dce1/attachment.html>

More information about the llvm-bugs mailing list