[LLVMbugs] [Bug 13231] New: [Windows] Can't mangle vftable properly
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 28 15:07:31 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13231
Bug #: 13231
Summary: [Windows] Can't mangle vftable properly
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: timurrrr at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat source.cpp
class Base {
public:
virtual ~Base();
};
class Child: public Base { };
int main() {
Child obj;
}
As of r159296,
$ clang++ -Xclang -cxx-abi -Xclang microsoft source.cpp
source-655362.o : error LNK2019: unresolved external symbol "const
Child::`vftable'" (??_7Child@@6B@) referenced in function "public: __thiscall
Child::Child(void)" (??0Child@@QAE at XZ)
source-655362.o : error LNK2019: unresolved external symbol "public: virtual
__thiscall Base::~Base(void)" (??1Base@@UAE at XZ) referenced in function "public:
virtual __thiscall Child::~Child(void)" (??1Child@@UAE at XZ)
source-655362.o : error LNK2019: unresolved external symbol "const
Base::`vftable'" (??_7Base@@6B@) referenced in function "public: __thiscall
Base::Base(void)" (??0Base@@QAE at XZ)
a.out : fatal error LNK1120: 3 unresolved externals
clang++: error: linker command failed with exit code 1120 (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