This is a known issue with the current PBQP data structures. I'm working on an overhaul of the PBQP allocator at the moment which should address this.<div><br></div><div>- Lang.<br><br><div class="gmail_quote">On Sat, Oct 20, 2012 at 2:08 PM, Benjamin Kramer <span dir="ltr"><<a href="mailto:benny.kra@gmail.com" target="_blank">benny.kra@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 20.10.2012, at 22:47, Jordan Rose <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:<br>
<br>
> Hi, everyone. Today I was trying to build LLVM with libc++ and C++11 enabled, and I ran into this:<br>
><br>
> <a href="http://stackoverflow.com/questions/10065384/instantiation-of-a-list-with-an-incomplete-type-in-a-typedef" target="_blank">http://stackoverflow.com/questions/10065384/instantiation-of-a-list-with-an-incomplete-type-in-a-typedef</a><br>

><br>
> Basically, PBQP/Graph.h forward-declares classes, then tries to get iterators for std::lists of those classes. This is technically undefined behavior. I tried fudging with the order of declarations for a while, but gave up after realizing there's not an easy way out.<br>

><br>
> Is anyone else building LLVMCodeGen with libc++ and C++11? Is anyone else seeing this?<br>
<br>
</div>I was hitting this problem a while ago, but it's not reproducible when compiling llvm with clang trunk and libc++ trunk.<br>
<br>
- Ben<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div>