https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86836
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Sep 5 07:20:31 2018 New Revision: 264105 URL: https://gcc.gnu.org/viewcvs?rev=264105&root=gcc&view=rev Log: Backported from mainline 2018-08-08 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/decomp46.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/pt.c branches/gcc-8-branch/gcc/testsuite/ChangeLog