title: `public` access qualifier and `const`ness. `-Wuninitialized`
body: <pre><code>class Foo
  {
      public:
          const int x;
  };
  
  class Bar
  {
      private:
          const int x;
  };
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>test.cpp:10:13: warning: non-static const member ‘const int Bar::x’ in class without a constructor [-Wuninitialized]
  </code></pre>
  
  <p>Why does <code>Bar</code>produce a warning but <code>Foo</code> doesn't (obviously because of access qualifier, but what is the logic?).</p>