-Wunused and C++17 structured bindings
commita440faa54f9964c7451f99e731453bc2b2c565dc
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 2017 01:46:16 +0000 (24 01:46 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 2017 01:46:16 +0000 (24 01:46 +0000)
treeb840b09fa0605e400acc0557650e104335dfb670
parentf9a296ab474aaf9029d08097d415d52879da7419
-Wunused and C++17 structured bindings

* decl.c (poplevel): Don't warn about unused structured bindings,
only real variables.
* error.c (dump_simple_decl): Handle structured bindings.
* expr.c (mark_exp_read): Look through DECL_VALUE_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248399 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/error.c
gcc/cp/expr.c
gcc/testsuite/g++.dg/cpp1z/decomp29.C [new file with mode: 0644]