[LLVMbugs] [Bug 20516] New: segmentation fault on calling destructor in member function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 1 22:42:32 PDT 2014


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

            Bug ID: 20516
           Summary: segmentation fault on calling destructor in member
                    function
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: timshen91 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12848
  --> http://llvm.org/bugs/attachment.cgi?id=12848&action=edit
preprocessed file

// Following code causes segfault.
template<typename T>
class A {
 public:
  ~A() { }

  void foo() {
    A::~A();
  }
};

int main() {
  A<int> a;
  a.foo();
  return 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140802/bceaaa63/attachment.html>


More information about the llvm-bugs mailing list