re PR c++/87080 (ice in cp_get_fndecl_from_callee, at cp/cvt.c:965)
authorMarek Polacek <polacek@redhat.com>
Sun, 26 Aug 2018 16:31:27 +0000 (16:31 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sun, 26 Aug 2018 16:31:27 +0000 (16:31 +0000)
commit0940fe595548ec397ffdb6c2f8fa4392c1c15ec5
tree90bb8b6fb258afc08c62591b88d00a023475219a
parent376384e4c4ff6fa5f9ec93bc7dc59c5d2a147c04
re PR c++/87080 (ice in cp_get_fndecl_from_callee, at cp/cvt.c:965)

PR c++/87080
* typeck.c (maybe_warn_pessimizing_move): Do nothing in a template.

* g++.dg/cpp0x/Wpessimizing-move5.C: New test.

From-SVN: r263862
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move5.C [new file with mode: 0644]