re PR c++/87122 (ICE in tsubst_decomp_names)
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 29 Aug 2018 12:27:55 +0000 (14:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 29 Aug 2018 12:27:55 +0000 (14:27 +0200)
commitf5b219ccc233001ee610d5a57ccb22ec4cb24f53
tree9f2a6bacc8335dc9fc5824074c1b0177888f2a66
parent7a1ce63278c4d26ccfb0db3459545aa6d24f16fc
re PR c++/87122 (ICE in tsubst_decomp_names)

PR c++/87122
* pt.c (tsubst_expr) <case RANGE_FOR_STMT>: If
processing_template_decl and decl is structured binding decl, call
cp_finish_decomp.

* g++.dg/cpp1z/decomp47.C: New test.

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