title: Const member stack vs heap
body: <p>If I try to compile <a href="http://ideone.com/79wLGv">this code</a></p>
  
  <pre><code>struct A {
      const int j;
  };
  A a;
  </code></pre>
  
  <p>I'll get an expected error:</p>
  
  <blockquote>
    <p>error: uninitialized const member in ‘struct A’</p>
  </blockquote>
  
  <p>but, if I try to compile <a href="http://ideone.com/uKwdaO">this one</a>:</p>
  
  <pre><code>struct A {
      const int j;
  };
  A * a = new A();
  </code></pre>
  
  <p>I'll get a successful build.</p>
  
  <p>The question is: why does <code>new</code> allocation allows creating a variable with const member without explicit constructor and stack allocation - doesn't ?</p>