[LLVMbugs] [Bug 6644] New: [C++ CodeGen] Crash with polymorphic class inside extern "C" block
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 17 22:36:38 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6644
Summary: [C++ CodeGen] Crash with polymorphic class inside
extern "C" block
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
extern "C" {
namespace N {
struct X {
virtual void f();
};
void X::f() { }
}
}
blackthorn:clang dgregor$ clang t.C
Assertion failed: (cast<LinkageSpecDecl>(DC)->getLanguage() ==
LinkageSpecDecl::lang_cxx && "Unexpected linkage decl!"), function
IgnoreLinkageSpecDecls, file
/Users/dgregor/Projects/llvm/tools/clang/lib/CodeGen/Mangle.cpp, line 310.
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-bwzvzw.s -x c++ t.C
1. <eof> parser at end of file
2. t.C:1:8: LLVM IR generation of declaration
3. t.C:6:13: Generating code for declaration 'N::X::f'
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