Wredundant-move9.C
1.85 KB
-
PR c++/89660 - bogus error with -Wredundant-move. · ef7e79a3
* typeck.c (maybe_warn_pessimizing_move): Only accept (T &) &arg as the std::move's argument. Don't call convert_for_initialization when warn_redundant_move isn't on. * g++.dg/cpp0x/Wredundant-move8.C: New test. * g++.dg/cpp0x/Wredundant-move9.C: New test. From-SVN: r269660
Marek Polacek committed