Skip to content
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

Issue 20376 - @disable this(ref return scope Foo rhs) enables broken binaries (out-of-bounds access) #10558

Merged
merged 1 commit into from
Nov 12, 2019

Conversation

RazvanN7
Copy link
Contributor

@RazvanN7 RazvanN7 commented Nov 11, 2019

The conversion is handled by the copy constructor only when the return value is an lvalue and the object has a defined copy constructor.

@dlang-bot
Copy link
Contributor

dlang-bot commented Nov 11, 2019

Thanks for your pull request and interest in making D better, @RazvanN7! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Auto-close Bugzilla Severity Description
20376 regression @disable this(ref return scope Foo rhs) enables broken binaries (out-of-bounds access)

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "stable + dmd#10558"

@RazvanN7 RazvanN7 changed the base branch from master to stable November 11, 2019 09:32
@RazvanN7
Copy link
Contributor Author

I think that the buildkite failure is due to a version mismatch (dmd - stable branch, phobos/druntime - master branch). Is there any way I can fix this?

@wilzbach wilzbach merged commit 9348253 into dlang:stable Nov 12, 2019
@wilzbach
Copy link
Member

wilzbach commented Nov 12, 2019

Well, the problem is that Buildkite doesn't detect master to stable changes immediately and thus sets this:

BUILDKITE_PULL_REQUEST_BASE_BRANCH="master"

from: https://buildkite.com/dlang/dmd/builds/10208#703fe997-f4f1-40f8-bb8d-038b78a4628e
used in: https://github.com/dlang/ci/blob/master/buildkite/origin_target_branch.sh

tl;dr: a force-push will change fix the BUILDKITE_PULL_REQUEST_BASE_BRANCH variable.

Full discussion: buildkite/feedback#306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants