r179949 - VLAs in C++14!
Stephen Lin
swlin at post.harvard.edu
Sat Apr 20 06:48:52 PDT 2013
> No. The rules are quite restrictive.
>
> VLA types can only be used for automatic storage duration variables (no
> typedefs, no template arguments, no VLAIS, ...). Unlike in C, the array
> bound is *not* part of the type, but this is not observable, since the
> variable cannot be used in sizeof, decltype, can't be deduced as a template
> argument, etc.
>
That's a relief :)
More information about the cfe-commits
mailing list