clang / libc++ broken ?

Hello,

I'm trying to build libc++ with the clang TOT version, but it asserts in codegen and fails.

Is it a problem on my system config (Mac OS X 10.7), or does someone else see this issue ?

+ clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/future.cpp
Assertion failed: (type->isReferenceType() == E->isGLValue() && "reference binding to unmaterialized r-value!"), function EmitCallArg, file
…/llvm/tools/clang/lib/CodeGen/CGCall.cpp, line 1435.
0 clang 0x0000000107219132 _ZL15PrintStackTracePv + 34

5 clang 0x0000000107219335 __assert_rtn + 53
6 clang 0x000000010626d6fe clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&, clang::Expr const*, clang::QualType) + 3102
7 clang 0x00000001062a5bb3 void clang::CodeGen::CodeGenFunction::EmitCallArgs<clang::FunctionProtoType>(clang::CodeGen::CallArgList&, clang::FunctionProtoType const*, clang::ConstExprIterator, clang::ConstExprIterator) + 515
8 clang 0x00000001062ab65d clang::CodeGen::CodeGenFunction::EmitCXXMemberCall(clang::CXXMethodDecl const*, llvm::Value*, clang::CodeGen::ReturnValueSlot, llvm::Value*, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator) + 765
9 clang 0x0000000106273e9d clang::CodeGen::CodeGenFunction::EmitCXXConstructorCall(clang::CXXConstructorDecl const*, clang::CXXCtorType, bool, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator) + 509

28 clang 0x0000000106129e82 main + 706

-- Jean-Daniel

Hello,

I'm trying to build libc++ with the clang TOT version, but it asserts in codegen and fails.

Is it a problem on my system config (Mac OS X 10.7), or does someone else see this issue ?

+ clang++ -c -g -Os -arch i386 -arch x86_64 -std=c++0x -U__STRICT_ANSI__ -nostdinc++ -I../include ../src/future.cpp
Assertion failed: (type->isReferenceType() == E->isGLValue() && "reference binding to unmaterialized r-value!"), function EmitCallArg, file
…/llvm/tools/clang/lib/CodeGen/CGCall.cpp, line 1435.

Please do an "svn up" and try again; if you still see this, please file a bug.

-Eli

No more luck.

Bug filled at: http://llvm.org/bugs/show_bug.cgi?id=10800