[LLVMbugs] [Bug 20819] New: -Wunsequenced should warn on "std::unique_ptr p; f(p.get(), std::move(p)); "
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 30 13:50:37 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20819
Bug ID: 20819
Summary: -Wunsequenced should warn on "std::unique_ptr p;
f(p.get(), std::move(p));"
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
-Wunsequenced should warn on this:
#include <memory>
void f(int *p, std::unique_ptr<int> foo) {}
int main() {
std::unique_ptr<int> p;
f(p.get(), std::move(p));
}
(motivated by http://crbug.com/409318)
--
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/20140830/59a1b1ef/attachment.html>
More information about the llvm-bugs
mailing list