[LLVMbugs] [Bug 7722] New: Unhandled exception ends in infinite loop

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 27 08:47:26 PDT 2010


           Summary: Unhandled exception ends in infinite loop
           Product: clang
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: trash at phoyd.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

The following code does not terminate, but instead prints "~V()" in a loop:
$ cat sample.cc
extern "C" { extern int puts(const char *s); }
struct V {

int main() {
    V y;
    throw 1;
$ uname -a
Linux oblomow #1 SMP PREEMPT 2010-03-16 21:25:39 +0100
x86_64 x86_64 x86_64 GNU/Linux
$ /opt/clang+llvm-2.7-x86_64-linux/bin/clang++ -v
clang version 1.1 (branches/release_27)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ /opt/clang+llvm-2.7-x86_64-linux/bin/clang++ sample.cc 
$ ./a.out

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