summaryrefslogtreecommitdiffstats
path: root/clang/www
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-23 19:57:01 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-23 19:57:01 +0000
commita09387df9ffbe0849288b6ba5ce9a31c0829eed5 (patch)
tree62ddf7fccee11b545778d1c19ea979882a26b82c /clang/www
parent2788782164db1a55d40f18a43e11e58904aeb836 (diff)
downloadbcm5719-llvm-a09387df9ffbe0849288b6ba5ce9a31c0829eed5.tar.gz
bcm5719-llvm-a09387df9ffbe0849288b6ba5ce9a31c0829eed5.zip
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). llvm-svn: 104471
Diffstat (limited to 'clang/www')
-rw-r--r--clang/www/cxx_compatibility.html7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/www/cxx_compatibility.html b/clang/www/cxx_compatibility.html
index cfe3c0a60c9..fe032403d7c 100644
--- a/clang/www/cxx_compatibility.html
+++ b/clang/www/cxx_compatibility.html
@@ -53,11 +53,8 @@ compatibility with GNU C and C99 programs:</p>
user-declared constructors or destructors, base classes, or any
members if non-POD type. All C types are POD types.</li>
- <li>Variable length arrays cannot be used in conjunction with
- templates. For example, one cannot use a variable length array
- inside a template or use a variable length array type in a template
- argument.</li>
-</ul>
+ <li>Variable length arrays cannot be used as the type of a non-type
+template parameter.</li> </ul>
<p>If your code uses variable length arrays in a manner that Clang doesn't support, there are several ways to fix your code:
OpenPOWER on IntegriCloud