[LLVMbugs] [Bug 21061] New: MS ABI: covariant override of pure virtual function has different vftable entries

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 24 19:18:46 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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 at IC@@$4PPPPPPPM at A@EAAPEAUIA@@XZ
?f at IC@@$4PPPPPPPM at A@EAAPEAUIB@@XZ
?f at IC@@$4PPPPPPPM at A@EAAPEAU1 at XZ

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

-- 
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/20140925/ff92b2bc/attachment.html>


More information about the llvm-bugs mailing list