clang shipped with Xcode 4.3.2 crushed when compile c++11 lambda
clang shipped with Xcode 4.3.2 crushed when compile c++11 lambda code.
Code is very simple:
int main() {
auto f=[](){};
f();
}
Compile with:
clang++ -std=c++11 ll.cc
clang crushed at clang::Sema::AddInitializerToDecl with a long stack dump.
Same code compiles with GCC 4.6.1 on Ubuntu.