[LLVMbugs] [Bug 11648] New: C++ lambda segfault [with minimal testcase and bt]
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 23 02:29:53 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11648
Bug #: 11648
Summary: C++ lambda segfault [with minimal testcase and bt]
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: gasper.azman at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7801
--> http://llvm.org/bugs/attachment.cgi?id=7801
the preprocessed sources, for completenes.
Hi,
Clang just crashed on me. As this isn't implemented, it should probably warn
about that instead of crashing:)
This is the code:
#include <iostream>
int main( int argc, char *argv[] )
{
std::cout << ([](){return 10;})();
}
I compiled with -std=c++0x and no other flags.
atom at kamichan ~ $ clang --version
clang version 3.0 (tags/RELEASE_30/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
I'm attaching clang's output .ii file (preprocessed sources) and everything it
dumped to the console (bt.txt)
By the way, the 3.0 clang is AWESOME. I love it. Thanks!
--
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