[LLVMbugs] [Bug 7900] New: clang c++ crash with invalid explicit destructor call

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 14 17:35:25 PDT 2010


           Summary: clang c++ crash with invalid explicit destructor call
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: crash-on-invalid
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

struct A {
struct B : public A {
void foo() {
  B b;

Crashes with:
clang: /home/eli/llvmgbuild/include/llvm/Support/Casting.h:202: typename
llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
clang::CXXRecordDecl, Y = clang::DeclContext*]: Assertion `isa<X>(Val) &&
"cast<Ty>() argument of incompatible type!"' failed.

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