re PR c++/55520 ([C++11] ICE when capturing a variable-length stack array in lambda...
commita9429737bda029bc8e668e23986e2d75fcec255f
authorJason Merrill <jason@redhat.com>
Fri, 7 Jun 2013 03:13:06 +0000 (6 23:13 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 7 Jun 2013 03:13:06 +0000 (6 23:13 -0400)
tree70fc133fcddca345d1e4ca13d3c1c6e8de9ff64f
parente765a228a54752519e75bf6b799ae4ad4bfa72e9
re PR c++/55520 ([C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122)

PR c++/55520
* semantics.c (add_capture): Diagnose capture of variable-size
type that is not a C++1y array of runtime bound.

From-SVN: r199780
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp1y/vla7.C [new file with mode: 0644]