[LLVMbugs] [Bug 18967] MS ABI: Bad this adjustment for virtual methods in a diamond virtual inheritance hierarchy
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Mar 10 11:01:13 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=18967
Hans Wennborg <hans at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #11 from Hans Wennborg <hans at chromium.org> ---
The test from Comment 6 still fails:
struct A {
virtual int foo() { return a; }
int a;
};
struct B : virtual A {
B() : b(1) {}
virtual int bar() { return b; }
int b;
};
struct C : virtual A {
C() : c(2) {}
virtual int foo() { return c; }
int c;
};
struct D : B, C {
D() : d(3) {}
virtual int bar() { return C::foo(); }
int d;
};
int main() {
D d;
printf("%d\n", d.bar());
return 0;
}
--
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/20140310/d5abcd8e/attachment.html>
More information about the llvm-bugs
mailing list