[LLVMbugs] [Bug 12031] New: Assert with lambda

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 17 17:52:43 PST 2012


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

             Bug #: 12031
           Summary: Assert with lambda
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: scoopr at iki.fi
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


With this simple test case I get an assert
~r150836


#include <functional>

void b(int i, std::function<void ()> f)
{
    f();
}

void a()
{
    const int v = 10000;
    b(v, [](){});
}

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