[LLVMbugs] [Bug 6706] New: Assertion: Sema doesn't consider destructor as used
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 25 09:45:17 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6706
Summary: Assertion: Sema doesn't consider destructor as used
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
blackthorn:clang dgregor$ cat t.C
struct A {
virtual ~A();
};
struct B : virtual A { };
struct C : virtual A { };
struct D : B, C {
virtual void f();
virtual ~D();
};
void D::f() { }
blackthorn:clang dgregor$ clang t.C
Assertion failed: (DD->isUsed() && "Sema doesn't consider destructor as
used."), function GetOrCreateLLVMFunction, file
/Users/dgregor/Projects/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp, line
803.
Stack dump:
0. Program arguments: /Users/dgregor/Projects/llvm-make/bin/clang -cc1
-triple x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name t.C
-pic-level 1 -mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir
/Users/dgregor/Projects/llvm-make/lib/clang/1.5 -fmessage-length 80
-stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o
/var/folders/Vf/VfsrpcXeFyKWp16pSa7tMk+++TI/-Tmp-/cc-vIddp2.s -x c++ t.C
1. <eof> parser at end of file
2. t.C:12:9: LLVM IR generation of declaration 'D::f'
3. t.C:12:9: Generating code for declaration 'D::f'
--
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