re PR c++/92666 (bogus -Wunused-but-set-variable in gcov.c with -Wno-restrict)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Dec 2019 23:16:58 +0000 (00:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Dec 2019 23:16:58 +0000 (00:16 +0100)
commit0bd002bf2e9f0224905ad19f036dde27b63c26c5
tree83387415649c6516b7b2cb6a3f1c3bc44a19a384
parent6c7b84305a5e686644ee64bfd2d415f3f43fa85b
re PR c++/92666 (bogus -Wunused-but-set-variable in gcov.c with -Wno-restrict)

PR c++/92666
* call.c (convert_arg_to_ellipsis): For floating point or
decltype(nullptr) arguments call mark_rvalue_use.

* g++.dg/warn/Wunused-var-36.C: New test.

From-SVN: r279681
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-var-36.C [new file with mode: 0644]