No error when defining an array of non-constexpr size
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5947661/in-c-books-array-bound-must-be-constant-expression-but-why-the-following-cod">In C++ books, array bound must be constant expression, but why the following code works?</a>  </p>
</blockquote>



<p>I do this within main():</p>

<pre><code>int i = 2; //not constant expression
int foo[i]; //no error?
</code></pre>

<p>This doesn't give me an error as it should according to my book. Why?</p>

<p>(i'm on clang 3.1)</p>
