re PR c++/63657 (-Wunused-variable: warning supressed by virtual dtor)
authorJason Merrill <jason@redhat.com>
Sat, 22 Nov 2014 02:21:35 +0000 (21:21 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 22 Nov 2014 02:21:35 +0000 (21:21 -0500)
commit9127c38e118f34e261face580e21de592d46c7f3
tree93241554a7aa78477ab871948ae4a4c3e2a615e6
parent0cd7c67283bcf3b0a443be9b6cdeaed7f6c1b8f3
re PR c++/63657 (-Wunused-variable: warning supressed by virtual dtor)

PR c++/63657
PR c++/38958
* call.c (set_up_extended_ref_temp): Set TREE_USED on the reference
if the temporary has a non-trivial destructor.
* decl.c (poplevel): Don't look through references.

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