aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2019-03-13 20:04:33 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2019-03-13 20:04:33 +0000
commitef7e79a3672d1b013646a1a6f8cd5931ef6bcd07 (patch)
treed47d790bc1e4b4c797c2003990ee1dbb7dcbf811 /gcc/fold-const.c
parent2b0a62741e675068c13e81690758855846c88726 (diff)
downloadgcc-ef7e79a3672d1b013646a1a6f8cd5931ef6bcd07.zip
gcc-ef7e79a3672d1b013646a1a6f8cd5931ef6bcd07.tar.gz
gcc-ef7e79a3672d1b013646a1a6f8cd5931ef6bcd07.tar.bz2
PR c++/89660 - bogus error with -Wredundant-move.
* 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
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions