PR c++/88394 - ICE with VLA init-capture.
authorJason Merrill <jason@redhat.com>
Fri, 22 Feb 2019 02:47:33 +0000 (21:47 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Feb 2019 02:47:33 +0000 (21:47 -0500)
commitd36b4bf75260d7228025af59fd811e3fd48993c6
treec7651d1c930598b81c7bbd3ce9550c3a9b94f0c5
parentc8b7e64d363069c6682bdeb51ba397e8bd4a4f9e
PR c++/88394 - ICE with VLA init-capture.

We mostly use is_normal_capture_proxy to decide whether or not to use
DECL_CAPTURED_VARIABLE; we could just check whether it's set.  VLA capture
is still mostly broken, but this fixes this ICE.

* lambda.c (is_normal_capture_proxy): Check DECL_CAPTURED_VARIABLE.

From-SVN: r269094
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/g++.dg/cpp1y/lambda-init-vla1.C [new file with mode: 0644]