re PR c++/78896 ([C++17] Segmentation fault occurs when use variable initialized...
authorJakub Jelinek <jakub@redhat.com>
Wed, 25 Jan 2017 22:36:18 +0000 (23:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 25 Jan 2017 22:36:18 +0000 (23:36 +0100)
commita25608aa6fc14c49fb23247f60c5f83225d00c29
tree034ce782d295c7ad1b65b4864497021015d7218f
parent0e3438689a6ffc4851ba8162306e5a1709b3b905
re PR c++/78896 ([C++17] Segmentation fault occurs when use variable initialized using structured binding with capture-by-ref lambda)

PR c++/78896
* decl.c (cp_finish_decomp): Disallow memberwise decomposition of
lambda expressions.

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

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