[LLVMbugs] [Bug 12065] New: clang trunk can't compile boost::lambda

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 22 00:49:45 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: qinlj0 at 163.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list