re PR c++/86836 (internal compiler error on structured bindings with shadow parameter...
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 Aug 2018 08:32:51 +0000 (10:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 8 Aug 2018 08:32:51 +0000 (10:32 +0200)
commit5e539332c47faa6d6df728d27fae5d02805ca5ec
treec447858039f5c99a47d3870bbeec66f9fafc4ca1
parentbf533db8059e25668db76845390786e7fa5f3a76
re PR c++/86836 (internal compiler error on structured bindings with shadow parameter on templated function)

PR c++/86836
* pt.c (tsubst_expr): For structured bindings, call tsubst_decomp_names
before tsubst_init, not after it.

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

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