<div dir="ltr">I see, thanks.<br><br>Indeed the fact that is guarantees stack allocation is quite different from `std::dyn_array`. Now let's hope people will behave and only use of small values of "n" !<br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 20, 2013 at 4:43 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Sat, Apr 20, 2013 at 6:46 AM, Matthieu Monrocq <span dir="ltr"><<a href="mailto:matthieu.monrocq@gmail.com" target="_blank">matthieu.monrocq@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Without the link I cannot confirm, is this "true" VLA or is it `std::dyn_array` ?</div>

</blockquote><div><br></div></div><div>What we voted in is pretty close to this: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3497.html" target="_blank">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3497.html</a></div>

<div><br></div><div>Quick summary:</div><div><br></div><div>struct S {</div><div>  S();</div><div>  ~S();</div><div>};</div><div>void f(int n) {</div><div>  S array[n];</div><div>
  [&array] { // ok</div><div>    for (decltype(auto) s : array) { // ok</div><div>      // ...</div><div>    }</div><div>  }</div><div>  [=array] {} // error</div><div>  sizeof(array); // error</div>
<div>  decltype(array) array2; // error</div><div>  int nested1[n][2]; // ok</div><div>  int nested2[2][n]; // error</div><div>  typedef int td[n]; // error</div><div><div class="h5"><div>}</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><div><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 20, 2013 at 3:33 PM, Stephen Lin <span dir="ltr"><<a href="mailto:swlin@post.harvard.edu" target="_blank">swlin@post.harvard.edu</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Oh dear, are they adopting the runtime-evaluated "sizeof" too??<br>


<div><div><br>
On Sat, Apr 20, 2013 at 9:20 AM, Richard Smith<br>
<<a href="mailto:richard-llvm@metafoo.co.uk" target="_blank">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" target="_blank">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>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">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></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>