PR c++/85256 - ICE capturing pointer to VLA.
authorJason Merrill <jason@redhat.com>
Mon, 9 Apr 2018 15:32:05 +0000 (11:32 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 9 Apr 2018 15:32:05 +0000 (11:32 -0400)
commit13c60208d0428ad14b4bd41a63a47d67bd35253f
tree0e0706c24ed4dec8f73d5d0ffc1ccdc88426446d
parentcca538a46e6a482af93cd75b76d357908f0cbd2f
PR c++/85256 - ICE capturing pointer to VLA.

* lambda.c (add_capture): Distinguish between variable-size and
variably-modified types.

From-SVN: r259240
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-vla2.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-vla3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/vla7.C
gcc/testsuite/g++.dg/cpp1y/vla9.C