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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to