PR c++/55149
commit4da0e4efd238e5c3d7ba110af1bb3cf39c138c2c
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 May 2013 14:17:30 +0000 (10 14:17 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 May 2013 14:17:30 +0000 (10 14:17 +0000)
tree2ac5e103ad1302783fb5637466fda43a9c36c25d
parenta30c75403137b35a77e4d7a0b8292c8ee46ff1d1
PR c++/55149
* semantics.c (add_capture): Error rather than abort on copy
capture of VLA.
* typeck.c (maybe_warn_about_returning_address_of_local): Don't
warn about capture proxy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198776 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp1y/vla5.C [new file with mode: 0644]