https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88394

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 22 02:47:33 2019
New Revision: 269094

URL: https://gcc.gnu.org/viewcvs?rev=269094&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init-vla1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/lambda.c

Reply via email to