http://llvm.org/bugs/show_bug.cgi?id=21061

            Bug ID: 21061
           Summary: MS ABI: covariant override of pure virtual function
                    has different vftable entries
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

struct IA {
  virtual IA *f();
};
struct __declspec(dllexport) IB : virtual IA {
  virtual IB *f() = 0;
  IB() {}
};

struct __declspec(dllexport) IC : IB {
  virtual IC *f();
  IC() {}
};

clang:
?f@IC@@$4PPPPPPPM@A@EAAPEAUIA@@XZ
?f@IC@@$4PPPPPPPM@A@EAAPEAUIB@@XZ
?f@IC@@$4PPPPPPPM@A@EAAPEAU1@XZ

msvc:
?f@IC@@$4PPPPPPPM@A@EAAPEAUIA@@XZ
?f@IC@@$4PPPPPPPM@7EAAPEAUIB@@XZ
?f@IC@@UEAAPEAU1@XZ

-- 
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