| | | | --- | --- | | Bugzilla Link | [20819](https://llvm.org/bz20819) | | Version | trunk | | OS | All | | CC | @DougGregor,@martinboehme,@riccibruno,@zygoloid,@rnk | ## Extended Description -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)
Extended Description
-Wunsequenced should warn on this:
#include
void f(int *p, std::unique_ptr foo) {}
int main() {
std::unique_ptr p;
f(p.get(), std::move(p));
}
(motivated by http://crbug.com/409318)