http://llvm.org/bugs/show_bug.cgi?id=12065
Bug #: 12065
Summary: clang trunk can't compile boost::lambda
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 8089
--> http://llvm.org/bugs/attachment.cgi?id=8089
Error messages produced by clang++ compiler
When compile this simple boost::lambda C++ file.
#include <vector>
#include <iostream>
#include <algorithm>
#include <boost/lambda/lambda.hpp>
int main( ) {
std::vector< int > v( 5, 5 );
std::for_each( v.begin( ), v.end( ), std::cout << boost::lambda::_1 );
}
Clang++ failed with an assert.
test.cpp|12 col 1| error: expected unqualified-id
|| --
|| ^
|| Assertion failed: (!Initializer || isa<ImplicitValueInitExpr>(Initializer)
|| isa<CXXConstructExpr>(Initializer)) && "Initializer expression that cannot
have been implicitly created.", file SemaExprCXX.cpp, line 1023
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs