title: Can I ignore the gcc warning: ‘Foo::m_bar’ should be initialized in the member initialization list [-Weffc++]
body: <pre><code>struct Bar
  {
      Bar() {}
  };
  
  
  struct Foo
  {
      Foo() = default;
      Bar m_bar;
  };
  
  int main()
  {
      Foo foo;
  }
  </code></pre>
  
  <p>When using C++11 <code>default</code> keyword and gcc warning <code>-Weffc++</code>, gcc outputs:</p>
  
  <blockquote>
    <p>warning: ‘Foo::m_bar’ should be initialized in the member
    initialization list [-Weffc++]</p>
  </blockquote>
  
  <p>Is it safe to ignore this warning? Should I file a bug to gcc?</p>