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 18670 - compiler segfault if new on a union type with dip1000 #8095
Conversation
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 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 fetch digger
dub run digger -- build "stable + dmd#8095" |
Hmm SemaphoreCi seems to have troubles with this:
(I restarted the build) |
|
||
// https://issues.dlang.org/show_bug.cgi?id=18670 | ||
|
||
void foo() { |
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.
Missing @safe
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.
The ICE happened without @safe and I thought the general policy is to copy/paste the submitted samples to the testsuite?
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.
Damn, another case were DIP1000 is not doing what it's supposed to do (nothing DIP1000 related should be checked outside of @safe
code).
@wilzbach I have no idea why that error might occur. The code changes affect compilation only if -dip1000 is used and all the check does is avoid calling a method on an empty object. The only thing that comes to mind is a situation in which the patch is applied on a different version of dmd/druntime/phobos then the one I am using. |
Yep, SemaphoreCi seems to checkout |
No description provided.