[LLVMbugs] [Bug 24027] New: clang-cl: empty lambda capture generates attribute block cannot be empty

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 3 17:10:57 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24027

            Bug ID: 24027
           Summary: clang-cl: empty lambda capture generates attribute
                    block cannot be empty
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: billy.baker at flightsafety.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Simple reduced repro

     std::function<void()> f([] {});

produces "error(clang): Microsoft attribute block cannot be empty".

Not present in r239702.

Present in r240278.
Still present in r241367.

Probably crept in around r239846/r239879.

clang.exe compiles the lambda correctly. Only clang-cl.exe has the issue.

-- 
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/20150704/3a874d0e/attachment.html>


More information about the llvm-bugs mailing list