[LLVMbugs] [Bug 17871] New: Crash with unknown/invalid type, lambda closure and std::function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 10 13:33:13 PST 2013


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

            Bug ID: 17871
           Summary: Crash with unknown/invalid type, lambda closure and
                    std::function
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: robin.kreis at uni-bremen.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Hi!

The following code makes clang crash when compiled with clang++ -std=c++11. 
Since this should be easily reproducible,  I will add the preprocessed source
and run script on request.

#include <functional>

int main() {
    std::function<void()> fnTest;
    for(auto i : undeclared) {
        fnTest = [i] {};
    }
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131110/0ed67ae1/attachment.html>


More information about the llvm-bugs mailing list