re PR c++/79746 (Confusing -Wunused-but-set-parameter warning with virtual inheritance)
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Mar 2017 08:35:55 +0000 (09:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Mar 2017 08:35:55 +0000 (09:35 +0100)
commite3e9e8ca83de62be68d8b589e9ddf9638f0e8366
tree277c2735ad213472aae49be30030f050ae3f2f41
parent0f3f4ffeafae6e4ae50bba50fae11ed82ab1b33b
re PR c++/79746 (Confusing -Wunused-but-set-parameter warning with virtual inheritance)

PR c++/79746
* init.c (emit_mem_initializers): When not constructing vbases of
abstract classes, mark arguments as read for
-Wunused-but-set-parameter.

* g++.dg/warn/Wunused-parm-9.C: New test.

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