[LLVMbugs] [Bug 20838] New: assertion "Leftover temporaries in function" triggered on calls which may throw

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 2 14:07:51 PDT 2014


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

            Bug ID: 20838
           Summary: assertion "Leftover temporaries in function" triggered
                    on calls which may throw
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: compnerd at compnerd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12980
  --> http://llvm.org/bugs/attachment.cgi?id=12980&action=edit
reduced.mm

This occurs with 3.4 and current trunk.  If you have a complex statement, e.g.
a stack block and an implicit conversion which may throw an exception, the
temporary value cleanup is not triggered, resulting in an assertion triggering.

The reduced test case demonstrates this.

-- 
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/20140902/a90aa293/attachment.html>


More information about the llvm-bugs mailing list