-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
fix Issue 20716 - Wrong code/ABI for extern(C++) interface method tha… #11703
Conversation
|
Thanks for your pull request, @WalterBright! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#11703" |
f04f117 to
4bcd416
Compare
|
This is ready to go. |
|
The commit message is too short. |
|
@WalterBright This should be part of the commit message: |
|
Stable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase to stable and add a test to cover the uncovered line and we are good to go.
| @@ -4719,6 +4719,8 @@ void cod3_thunk(Symbol *sthunk,Symbol *sfunc,uint p,tym_t thisty, | |||
| p += I32 ? 8 : tysize(TYfptr); // far function | |||
| else | |||
| p += tysize(TYnptr); | |||
| if (tybasic(sfunc.ty()) == TYhfunc) | |||
| p += tysize(TYnptr); // skip over hidden pointer | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line appears to not be covered by tests.
…t returns non-POD
4bcd416 to
9ad79f6
Compare
…t returns non-POD