re PR c++/85209 (ICE with lambda and structured binding)
authorJakub Jelinek <jakub@redhat.com>
Thu, 5 Apr 2018 21:30:47 +0000 (23:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 5 Apr 2018 21:30:47 +0000 (23:30 +0200)
commit86c9f54bb6e513b97fc40eeefd419a3f28ba451e
tree9e067a4874d858d09084d7998fff8cb0de7e518c
parenta1afa75e015d3b139fc8fa0f1786ae4a9ccbf022
re PR c++/85209 (ICE with lambda and structured binding)

PR c++/85209
* pt.c (tsubst_decomp_names): Don't fail or ICE if DECL_CHAIN (decl3)
is not prev, if prev == decl.

* g++.dg/cpp1z/decomp39.C: New test.
* g++.dg/cpp1z/decomp40.C: New test.

From-SVN: r259156
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp39.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/decomp40.C [new file with mode: 0644]