[LLVMbugs] [Bug 21031] New: MS ABI: dllexport'd VFTable name differs between CL and clang
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Sep 22 14:05:55 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21031
Bug ID: 21031
Summary: MS ABI: dllexport'd VFTable name differs between CL
and clang
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
consider:
struct __declspec(dllexport) A {};
struct __declspec(dllexport) B {
virtual void f(void);
};
struct __declspec(dllexport) C : virtual B {
virtual void g(void);
};
struct __declspec(dllexport) D : virtual B, C {};
our VFTable's differ like so:
--- different.cpp_clang.obj.dump 2014-09-22 14:12:46.712804100 -0700
+++ different.cpp_vs.obj.dump 2014-09-22 14:12:46.758808700 -0700
@@ -1,7 +1,7 @@
const B::`vftable'[0]: public: virtual void __thiscall B::f(void)
const C::`vftable'{for `C'}[0]: public: virtual void __thiscall C::g(void)
const C::`vftable'{for `B'}[0]: public: virtual void __thiscall B::f(void)
-const D::`vftable'{for `B'}[0]: public: virtual void __thiscall B::f(void)
+const D::`vftable'[0]: public: virtual void __thiscall B::f(void)
const D::`vftable'{for `C'}[0]: public: virtual void __thiscall C::g(void)
const C::`vbtable'[0]: -4
const C::`vbtable'[4]: 4
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140922/1caf83e6/attachment.html>
More information about the llvm-bugs
mailing list