-Wunused and C++17 structured bindings
authorJason Merrill <jason@redhat.com>
Wed, 24 May 2017 01:46:16 +0000 (21:46 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 24 May 2017 01:46:16 +0000 (21:46 -0400)
commit5726acd7d7f84a27e17719f185e3e4c5e67aeb2d
treeb840b09fa0605e400acc0557650e104335dfb670
parentc15394ee0dd5f7bcc4ee8d1ce91d2ce98d04f2d9
-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.

From-SVN: r248399
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]