[LLVMbugs] [Bug 6562] New: Crash due to missing destructor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 9 12:02:25 PST 2010


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

           Summary: Crash due to missing destructor
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chandlerc at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


% cat t.cc                      
struct X { ~X() {} };
template <typename T>
struct A {
  struct B { X x; };
  struct C : public B {
    C() : B() { }
  };
};

% ./bin/clang -fsyntax-only t.cc
clang: /home/chandlerc/src/llvm/trunk/tools/clang/lib/AST/DeclCXX.cpp:556:
clang::CXXDestructorDecl*
clang::CXXRecordDecl::getDestructor(clang::ASTContext&) const: Assertion `I !=
E && "Did not find a destructor!"' failed.
Stack dump:
0.      Program arguments: /home/chandlerc/src/llvm/trunk/build/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name
t.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/home/chandlerc/src/llvm/trunk/build/lib/clang/1.1 -fmessage-length 283
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -x c++
t.cc 
1.      t.cc:6:15: current parser token '{'
2.      t.cc:3:1: parsing struct/union/class body 'A'
clang: error: compiler 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