[LLVMdev] Unable to build PBQP/Graph.h with libc++
benny.kra at gmail.com
Sat Oct 20 14:08:02 PDT 2012
On 20.10.2012, at 22:47, Jordan Rose <jordan_rose at apple.com> wrote:
> Hi, everyone. Today I was trying to build LLVM with libc++ and C++11 enabled, and I ran into this:
> 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.
> Is anyone else building LLVMCodeGen with libc++ and C++11? Is anyone else seeing this?
I was hitting this problem a while ago, but it's not reproducible when compiling llvm with clang trunk and libc++ trunk.
More information about the llvm-dev