-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong memory layout when handle virtual inheritance #465
Labels
Comments
Yeah, I believe this partially a dupe of #380, though the |
This is clearly a bug btw, and thanks for the report (it's deeply appreciated, as usual :)) |
No problem, I'm working on the alignment issue, the layout test cases failed on it, just disable all the alignment tests when two or more virtual inheritances |
That's awesome, thanks for working on that! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the test case in
virtual_inheritance.hpp
, C++ will generate memory layout asbindgen
will generate memory layout asFirst, both
C
andB
will be aligned to 16 bytes, it causeD::bazz
be aligned to 32 bytes rather than 28 bytes.Second,
A::foo
should be generated and followingD::bazz
.The text was updated successfully, but these errors were encountered: