[LLVMbugs] [Bug 7699] New: Assertion `!EHBranchThroughDest' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 24 00:00:38 PDT 2010


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

           Summary: Assertion `!EHBranchThroughDest' failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: grzegorz.dabrowski at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


$ clang -v
clang version 2.8 (trunk 109330)
Target: i386-pc-linux-gnu
Thread model: posix


$ cat tests-my/branchthroughdest.cpp 
#include <iostream>
#include <set>

int main() {
  std::set<std::string> alreadyLoaded;
  try {
    alreadyLoaded.insert("test");
  }
  catch (char *str) {
  }
  return 0;
}

$ clang++ tests-my/branchthroughdest.cpp 
clang: CodeGenFunction.cpp:843: void
clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool): Assertion
`!EHBranchThroughDest' failed.
0  clang 0x093e2dfb
Stack dump:
0.    Program arguments:
/home/stuff/download/SCM/llvm/Release+Asserts/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name branchthroughdest.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir
/home/stuff/download/SCM/llvm/Release+Asserts/lib/clang/2.8 -ferror-limit 19
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-GxLGHC.s -x c++ tests-my/branchthroughdest.cpp 
1.    <eof> parser at end of file
2.    tests-my/branchthroughdest.cpp:4:5: LLVM IR generation of declaration
'main'
3.    tests-my/branchthroughdest.cpp:4:5: Generating code for declaration
'main'
4.    tests-my/branchthroughdest.cpp:4:12: LLVM IR generation of compound
statement ('{}')
5.    tests-my/branchthroughdest.cpp:6:6: LLVM IR generation of compound
statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

-- 
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