[LLVMbugs] [Bug 22219] New: Warn when trying to std::move from a const reference

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 13 11:59:04 PST 2015


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

            Bug ID: 22219
           Summary: Warn when trying to std::move from a const reference
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andersca at icloud.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In WebKit we have our own WTF::move that makes calling std::move on a value
that's const a compile error. It'd be nice if this was supported as a native
warning instead.

-- 
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/20150113/5920a391/attachment.html>


More information about the llvm-bugs mailing list