[LLVMbugs] [Bug 6705] New: Assertion `I->second == CleanupEntries.size() - 1' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 25 09:31:43 PDT 2010


           Summary: Assertion `I->second == CleanupEntries.size() - 1'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: b.jacques at planet.nl
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

The following program:

#include <exception>

int main () {
  bool cond = false;

  try { }
  catch (std::exception& e) {
    if (cond) {
      throw e;
    try { } catch (std::exception& e2) { }

Causes this assertion failure:

clang: CGStmt.cpp:221: void
clang::CodeGen::CodeGenFunction::EmitBlock(llvm::BasicBlock*, bool): Assertion
`I->second == CleanupEntries.size() - 1' failed.
0  clang 0x08cbe858
Stack dump:
0.    Program arguments: /home/bastiaan/llvm/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name exception.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /home/bastiaan/llvm/lib/clang/1.5 -fmessage-length 133
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-j5luRc.s -x c++ exception.cc 
1.    <eof> parser at end of file
2.    exception.cc:3:5: LLVM IR generation of declaration 'main'
3.    exception.cc:3:5: Generating code for declaration 'main'
4.    exception.cc:3:13: LLVM IR generation of compound statement ('{}')
5.    exception.cc:7:29: LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list