title: g++: array bound is not an integer constant
body: <p>With the code,</p>
  
  <pre><code>const double rotationStep = 0.001;
  const int N = 2*int(M_PI/rotationStep) + 3;
  
  static unsigned int counts[N];
  </code></pre>
  
  <p><code>g++</code> gives the error: </p>
  
  <blockquote>
    <p>array bound is not an integer constant before »]« token</p>
  </blockquote>
  
  <p>I am using <code>g++</code>/<code>gcc</code> version 4.6.1</p>
  
  <p>Can anybody tell me why <code>g++</code> complains about the expression?</p>