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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    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
elision.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to