[llvm-bugs] [Bug 25001] New: Assertion failed: (blockScope->CaptureMap.count(newCapture)), function TransformBlockExpr, file TreeTransform.h, line 10764

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 30 11:06:41 PDT 2015


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

            Bug ID: 25001
           Summary: Assertion failed:
                    (blockScope->CaptureMap.count(newCapture)), function
                    TransformBlockExpr, file TreeTransform.h, line 10764
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: compnerd at compnerd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14961
  --> https://llvm.org/bugs/attachment.cgi?id=14961&action=edit
reduced.c

The attached reduced test case causes the assertion to be tripped.  It seems
that the there is a case where the diagnostics engine in the sema does not
indicate an error has occurred even though one has.  This results in us trying
to validate the variable captures in the block which results in the assertion
being triggered.

The naming of the external function and the parameter to the function here are
relevant as that is the cause of the error, but changing the names seems to
cause the error to be reported correctly.

This may be some edge case interaction between the fuzzy name lookup and error
reporting for recovery in parsing resulting in the error being reported later.

-- 
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/20150930/3c2a7d5e/attachment-0001.html>


More information about the llvm-bugs mailing list