]> granicus.if.org Git - clang/commit
It turns out that people love using VLAs in templates, too. Weaken our
authorDouglas Gregor <dgregor@apple.com>
Sun, 23 May 2010 19:57:01 +0000 (19:57 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 23 May 2010 19:57:01 +0000 (19:57 +0000)
commita481ec4150ad203440852a2bfee0883dd26f7530
tree5b39dca0a86ea1a9747f4731470c78b761efaba7
parent9ba6af8bedba28d10a6906c62c19d43f81c5d386
It turns out that people love using VLAs in templates, too. Weaken our
VLA restrictions so that one can use VLAs in templates (even
accidentally), but not as part of a non-type template parameter (which
would be very bad).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104471 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Type.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaType.cpp
test/SemaCXX/c99-variable-length-array.cpp
www/cxx_compatibility.html