PR c++/78896
commitecdf751486af98b7318e24612a68cfbcd47c0689
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 2017 22:36:18 +0000 (25 22:36 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 2017 22:36:18 +0000 (25 22:36 +0000)
tree034ce782d295c7ad1b65b4864497021015d7218f
parentff45b4745328e341f92223e7c54821fa40ed2977
PR c++/78896
* decl.c (cp_finish_decomp): Disallow memberwise decomposition of
lambda expressions.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244909 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp24.C [new file with mode: 0644]