[LLVMbugs] [Bug 12435] New: Using lambdas, clang crashes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 1 14:17:55 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12435

             Bug #: 12435
           Summary: Using lambdas, clang crashes
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: lcid-fire at gmx.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8310
  --> http://llvm.org/bugs/attachment.cgi?id=8310
Console output

When I try to compile the following code clang++ crashes:

#include <functional>
#include <string>

int main(int argc, char** args)
{
    auto func = [](size_t blub) -> std::string
    {
        return std::string("Blub");
    };

    return func(4).size();
}

-- 
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