aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/array-notation-common.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2013-06-20 20:28:30 -0400
committerJason Merrill <jason@gcc.gnu.org>2013-06-20 20:28:30 -0400
commit593bcbb8e43c07296325e167ba98bdc52ee3c8de (patch)
tree79e79e7901378ca24afca029f3929fdfbccd7994 /gcc/c-family/array-notation-common.c
parent8fc95c057c13a936806315026521b505cdbb28c9 (diff)
downloadgcc-593bcbb8e43c07296325e167ba98bdc52ee3c8de.zip
gcc-593bcbb8e43c07296325e167ba98bdc52ee3c8de.tar.gz
gcc-593bcbb8e43c07296325e167ba98bdc52ee3c8de.tar.bz2
re PR c++/55149 (capturing VLA in lambda)
PR c++/55149 * decl.c (compute_array_index_type): Don't reject VLAs in SFINAE context if we're in C++14 mode. * tree.c (array_of_runtime_bound_p): Return true for a dependent bound that is not potentually constant. * cp-tree.h (DECL_VLA_CAPTURE_P, REFERENCE_VLA_OK): New. * pt.c (tsubst) [REFERENCE_TYPE]: Check REFERENCE_VLA_OK. * semantics.c (build_lambda_object): Don't rvalue a VLA capture. (build_capture_proxy): Set REFERENCE_VLA_OK. (vla_capture_type): Make it a proper C++ class. (add_capture): Set DECL_VLA_CAPTURE_P. Don't pre-digest the initializer. From-SVN: r200279
Diffstat (limited to 'gcc/c-family/array-notation-common.c')
0 files changed, 0 insertions, 0 deletions