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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs