title: Object hierarchy using std::list from libc++ (bug?)
body: <p>I think I found a bug in the libc++ list implementation. The following code will produce a compiler error (Field has incomlete type 'foo') when using certain build settings in xcode:</p>
  
  <pre><code>#include &lt;list&gt;
  
  using namespace std;
  
  class foo {
      public:
          list&lt;foo&gt; bar;
  };
  </code></pre>
  
  <p>The settings are the following:</p>
  
  <p><strong>XCode Version:</strong> 4.4.1<br>
  <strong>C++ Language Dialect:</strong> C++11 or GNU++11<br>
  <strong>C++ Standard library:</strong> LLVM C++ standard library with C++ extensions (libc++11)<br></p>
  
  <p>Using GCCs libstdc++ will resolve the error.<br>
  Not using the C++11 dialect will resolve the error.<br>
  Using vector instead of list will resolve the error.<br></p>
  
  <p>I think it is a bug in the list implementation, but I am not sure.<br>
  Forgive my ignorance, but I don't know what I should do to resolve this issue.<br>
  Switching to vector is not an option in my project and I definitely need C++11 features. That also includes shared_ptr, but the headers are missing when using GCC. Beside that, apple does not seem to provide new versions of GCC anymore.</p>
  
  <p>I would very appreciate it if somebody could recreate this issue, maybe with newer header from libc++.<br></p>
  
  <p>Also, if updating LLVM/libc++ would resolve this issue, do you recommend it? </p>