-
-
Notifications
You must be signed in to change notification settings - Fork 706
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 20937 - std.range.array of a lengthless range with indirection is not @safe #8202
Conversation
Thanks for your pull request and interest in making D better, @dukc! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
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
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 "stable + phobos#8202" |
It seems this fails CI |
This seems to have uncovered an ICE in the compiler. |
Does this work as intended if emplaceRef is used? |
Let's test... |
Nope, does not. Changing back. EDIT: oops, was watching old autotest results. Let's try once more |
Now I'm definitely seeing an ICE with |
Ouch, we have a heisenbug indeed. Even though I'm using the latest Linux dmd, compiling the same file with same flags as the autotester, the ICE does not reproduce locally. EDIT: again bad reading of autotester reports on my part. I looked at last command before the error instead of the "command failed" line after the stack trace. Now I can reproduce. |
DMD issue pinned - reported here: https://issues.dlang.org/show_bug.cgi?id=22228 |
86cf356
to
512187c
Compare
Sorry, I should've target master in dlang/dmd#13007 . But you know, someone could say regressions go to stable, no exceptions. I suppose an early merge should be possible. (HELP!) |
@dukc Please rebase against stable so that we can get this in. |
Since the PR that caused the bug in first place was merged into stable, it was correct thing to do to target stable yourself. It's up to me to rebase in situations like these. Alternatively I could just have waited for the stable merge in DMD. |
CircleCI fails because... DMD fails to build? |
Are you sure you are using the latest stable branch? |
I update my local stable, then rebased my local PR branch against that and then force-pushed. And also I changed this PR:s target branch. My fork repo still compares the PR branch against master though - how do I rebase that? |
Also replaced
emplaceRef
withemplace
to remove dependency on DRuntime internals.