https://llvm.org/bugs/show_bug.cgi?id=23452

            Bug ID: 23452
           Summary: [MS ABI] Can't compile member pointer formed from base
                    with virtual inheritance model
           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

consider:
struct A {
  virtual void f();
};
struct B : virtual A {
  virtual void f();
};
auto g() { return &B::f; }

this generates:
error: cannot compile this pointer to virtual member function overriding member
function in virtual base class yet

This is distinct from PR15713 because this example is within the bounds of the
C++ standard.

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