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

            Bug ID: 18854
           Summary: Infinite recursion when trying to store a lambda in a
                    std::function
           Product: clang
           Version: 3.4
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 12069
  --> http://llvm.org/bugs/attachment.cgi?id=12069&action=edit
The testcase.

I attached the crashing code. It seems fixed in the newest clang, where the
testcase compilation (gracefully) fails with some static_asserts failing. I
still figured it was worth reporting since I took the time to create a
testcase, haha.

Attached code makes this clang crash:

clang++ --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

But this clang works fine:
clang version 3.5 
Target: x86_64-apple-darwin13.0.0
Thread model: posix

(since it's missing the revision, it's llvm @ 3cab648f with clang @ 93de7bb3 )

Cheers,

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to