[cfe-commits] MS pure virtual call ABI

John McCall rjmccall at apple.com
Wed Jun 27 10:25:08 PDT 2012


On Jun 26, 2012, at 11:25 PM, João Matos wrote:
> Chandler, most of the details of the MS ABI are not publicly
> documented, as far as I know there is no spec.
> 
> The only reference I can find is this:
> http://msdn.microsoft.com/en-us/library/ff798096.aspx

As an alternative to finding a spec, if you can clearly demonstrate that the
observable behavior of calling a pure virtual function is to call this particular
function, then I believe we can accept this.  For example, what happens
when you run this program?

struct A {
  virtual void foo() = 0;
  A() { foo(); }
};
struct B : A{
  void foo() {}
};
int main() {
  B b;
}

John.



More information about the cfe-commits mailing list