re PR c++/83806 (Spurious -Wunused-but-set-parameter with nullptr)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 8 Feb 2018 18:54:39 +0000 (18:54 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 8 Feb 2018 18:54:39 +0000 (18:54 +0000)
commit739745618a4202f3bf515494175eacae6ff05d2d
treeee74a0c7ce2eacceafb4337723bb831769dc7ce6
parentb00dcb136ea594997c35108903782142849d6ac8
re PR c++/83806 (Spurious -Wunused-but-set-parameter with nullptr)

/cp
2018-02-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/83806
* typeck.c (decay_conversion): Use mark_rvalue_use for the special
case of nullptr too.

/testsuite
2018-02-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/83806
* g++.dg/warn/Wunused-parm-11.C: New.

From-SVN: r257502
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-parm-11.C [new file with mode: 0644]