PR c++/80084 - wrong C++17 decomposition by reference of parameter.
authorJason Merrill <jason@redhat.com>
Mon, 20 Mar 2017 02:22:43 +0000 (22:22 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Mar 2017 02:22:43 +0000 (22:22 -0400)
commita4dfaae1051ed23cea9aefaefdef156d0f02c1cd
treecd05875f6b290965395cbd7d9736413cb9844941
parentc88169089283a22360c6a9eacbc9a3345c82598a
PR c++/80084 - wrong C++17 decomposition by reference of parameter.

* decl.c (cp_finish_decomp): Don't pull out the DECL_INITIAL of a
reference decomposition.

From-SVN: r246273
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp1z/decomp27.C [new file with mode: 0644]