Fix tuple decomposition decltype.
authorJason Merrill <jason@redhat.com>
Wed, 16 Nov 2016 21:30:41 +0000 (16:30 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 16 Nov 2016 21:30:41 +0000 (16:30 -0500)
commitfc72d1ed3c8b11437981487755a7d6edfaf06d22
tree2550dbae7c32ca1011f1b45cf788c648f8f3c47d
parent8e2be5aefcc78b213c2f44e50cbec2c799f40f8b
Fix tuple decomposition decltype.

* decl.c (store_decomp_type, lookup_decomp_type): New.
(cp_finish_decomp): Call store_decomp_type.
* semantics.c (finish_decltype_type): Call lookup_decomp_type.
* cp-tree.h: Declare lookup_decomp_type.

From-SVN: r242513
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp1z/decomp17.C [new file with mode: 0644]
gcc/tree.h