[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


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

           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 {
  ~V() 
  {
   puts("~V()");
  }
};

int main() {
    V y;
    throw 1;
}
$
$ uname -a
Linux oblomow 2.6.31.12-0.2-desktop #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
~V()
~V()
~V()
...(etc)

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