http://llvm.org/bugs/show_bug.cgi?id=15160
Bug ID: 15160
Summary: Parser crashes on type dependency checking in lambda
expression
Product: clang
Version: 3.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 9965
--> http://llvm.org/bugs/attachment.cgi?id=9965&action=edit
Crash output w/ command line arguments
Frontend segfaults (signal 2) on parsing (and type checking) lambda expression.
GCC handles it fine.
System:
OS: Ubuntu 12.10 with Linux 3.5.0-23-generic
Clang: clang 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)
Flags: -std=c++0x -vc
Expression that crashes:
for( auto& g : graph ) {
std::remove_if( g.begin(), g.end(), [&]( const int val )
{ return std::binary_search( H.cbegin(), H.cend(), G[ val ] ); }
);
}
--
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