<div dir="ltr">On Sat, Apr 20, 2013 at 6:33 AM, Stephen Lin <span dir="ltr"><<a href="mailto:swlin@post.harvard.edu" target="_blank">swlin@post.harvard.edu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oh dear, are they adopting the runtime-evaluated "sizeof" too??</blockquote><div><br></div><div style>No. The rules are quite restrictive.</div>
<div style><br></div><div style>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.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
On Sat, Apr 20, 2013 at 9:20 AM, Richard Smith<br>
<<a href="mailto:richard-llvm@metafoo.co.uk">richard-llvm@metafoo.co.uk</a>> wrote:<br>
> Author: rsmith<br>
> Date: Sat Apr 20 08:20:33 2013<br>
> New Revision: 179949<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=179949&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=179949&view=rev</a><br>
> Log:<br>
> VLAs in C++14!<br>
><br>
> Modified:<br>
>     cfe/trunk/www/cxx_status.html<br>
><br>
> Modified: cfe/trunk/www/cxx_status.html<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/www/cxx_status.html?rev=179949&r1=179948&r2=179949&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/www/cxx_status.html?rev=179949&r1=179948&r2=179949&view=diff</a><br>

> ==============================================================================<br>
> --- cfe/trunk/www/cxx_status.html (original)<br>
> +++ cfe/trunk/www/cxx_status.html Sat Apr 20 08:20:33 2013<br>
> @@ -427,7 +427,7 @@ available.</p><br>
>        <td class="none" align="center">No</td><br>
>      </tr><br>
>      <tr><br>
> -      <td>[PROVISIONAL] Runtime-sized arrays with automatic storage duration</td><br>
> +      <td>Runtime-sized arrays with automatic storage duration</td><br>
>        <td><a href="<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3639.html" target="_blank">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3639.html</a>">N3639</a></td><br>

>        <td class="none" align="center">Partial</td><br>
>      </tr><br>
> @@ -459,7 +459,7 @@ available.</p><br>
>      <tr><br>
>        <td>Clarifying memory allocation</td><br>
>        <td><a href="<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3664.html" target="_blank">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3664.html</a>">N3664</a></td><br>

> -      <td class="none" align="center">No</td><br>
> +      <td class="none" align="center">Partial</td><br>
>      </tr><br>
>  </table><br>
><br>
><br>
><br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>