]> granicus.if.org Git - clang/commit
Disable VLA diagnostic in C++1y mode, and add some tests.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 20 Apr 2013 23:28:26 +0000 (23:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 20 Apr 2013 23:28:26 +0000 (23:28 +0000)
commit39b0e269dc8895ecc0f92f08126d3082b2a837a8
treed3f37bb30a41882561fe2ce92134e730d4be2c59
parentc41a25a97f27dd1847cf2f806b3b197a2cd85233
Disable VLA diagnostic in C++1y mode, and add some tests.

Still to do here:
  - we have a collection of syntactic accepts-invalids to diagnose
  - support non-PODs in VLAs, including dynamic initialization /
    destruction
  - runtime checks (and throw std::bad_array_length) for bad bound
  - support VLA capture by reference in lambdas
  - properly support VLAs in range-based for (don't recompute bound)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179962 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaStmt.cpp
lib/Sema/SemaType.cpp
test/SemaCXX/cxx1y-array-runtime-bound.cpp [new file with mode: 0644]
test/SemaCXX/cxx98-compat-pedantic.cpp