[LLVMbugs] [Bug 20464] New: MS ABI: Class with a base and a pointer-to-member of it's own type as a field cannot be compiled

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 26 18:15:51 PDT 2014


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

            Bug ID: 20464
           Summary: MS ABI: Class with a base and a pointer-to-member of
                    it's own type as a field cannot be compiled
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

consider:
struct A {};
struct B : A {
  int B::*field;
  virtual void method(void);
};

we give the following error:
inheritance model does not match definition

however, MSVC accepts

-- 
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/20140727/ca200ae0/attachment.html>


More information about the llvm-bugs mailing list