[LLVMbugs] [Bug 4890] New: Assert when generating debug info for C++ destructor
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Sep 4 13:11:13 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4890
Summary: Assert when generating debug info for C++ destructor
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu
Given dtor.cpp:
struct X {
~X();
};
X::~X() { }
clang -c dtor.cpp -g produces:
Assertion failed: (!isa<CXXDestructorDecl>(D) && "Use mangleCXXDtor for
destructor decls!"), function mangleName, file
/Volumes/Data/dgregor/Projects/llvm/tools/clang/lib/CodeGen/Mangle.cpp, line
847.
Stack dump:
0. Program arguments:
/Volumes/Data/dgregor/Projects/llvm-build-xcode/bin/Debug/clang-cc -triple
i386-apple-darwin10 -S -disable-free -main-file-name dtor.cpp
--relocation-model pic -pic-level=1 --disable-fp-elim --unwind-tables=0
--mcpu=yonah --fmath-errno=0 -mmacosx-version-min=10.6.0 -g
-fdiagnostics-show-option -o
/var/folders/4o/4oX0yyc9FZ0tdikPS5odWE+++TI/-Tmp-/cc-lyMxzB.s -x c++ dtor.cpp
1. <eof> parser at end of file
2. dtor.cpp:5:4: LLVM IR generation of declaration 'X::~X'
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