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

            Bug ID: 22553
           Summary: [ms] "Terminator found in the middle of a basic
                    block!" with nested __finally blocks
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Found while writing tests for __leave codegen:

Nicos-MacBook-Pro-3:llvm-build thakis$ cat foo2.cc 
int nested___finally___finally() {
  __try {
    __try {
    } __finally {
      return 0;
    }
  } __finally {
  }
  return 1;
}
Nicos-MacBook-Pro-3:llvm-build thakis$ bin/clang -target x86_64-pc-win32
-emit-llvm -S -o - foo2.cc  
Terminator found in the middle of a basic block!
label %__finally.cont
fatal error: error in backend: Broken function found, compilation aborted!
clang-3.5: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.7.0 (trunk 228879)
Target: x86_64-pc-windows-msvc
Thread model: posix
clang-3.5: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.5: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.5: note: diagnostic msg:
/var/folders/c5/8d7sdn1x2mg92mj0rndghhdr0000gn/T/foo2-d509c9.cpp
clang-3.5: note: diagnostic msg:
/var/folders/c5/8d7sdn1x2mg92mj0rndghhdr0000gn/T/foo2-d509c9.sh
clang-3.5: note: diagnostic msg: 

********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to