-
-
Notifications
You must be signed in to change notification settings - Fork 610
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 21164 - segfault on incomplete static if #11585
Conversation
|
Why is |
|
@MoonlightSentinel it is. |
Put that one poorly, I'm not sure why it even attempts to do semantic on EDIT: Maybe this needs some earlier error propagation? |
@MoonlightSentinel perhaps that would be the proper fix. |
|
Thanks @MoonlightSentinel |
6fa4bf5 to
293b59f
Compare
|
As usual, please give a proper title to both PR and commits. |
|
ping @UplinkCoder, can you polish the formal aspect of this PR ? this should not take more than 5 minutes. |
|
@Geod24 What exactly would you want to read, as far as I can see the information needed is in the commit message. |
|
The message of the first commit must be |
|
Aye I can do that
…On Fri, Sep 4, 2020, 8:11 PM Nils Lankila ***@***.***> wrote:
The message of the first commit must be fix issue 21164 - segfault on
incomplete static if. Then the title of the PR should also be set to
that, for now it's not descriptive. It's a bit like a click bait.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11585 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVWSCHN7WDBCQETMCFWHNTSEEUUXANCNFSM4QBYZAUA>
.
|
|
@UplinkCoder : Come on, I even linked an article. All one have to do is to read it. |
|
Thanks for your pull request, @UplinkCoder! 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 + dmd#11585" |
c9ea955 to
6684b53
Compare
|
@Geod24 I assume you mean the line length, fixed now. |
6684b53 to
5ffecb2
Compare
|
@MoonlightSentinel this fails on windows because of the different path separators, in the error message. |
5ffecb2 to
d38f7a3
Compare
|
Seems like a bug with the new path handling. You could omit the additional import path and use EDIT: into instead. I'll have a look. |
I had a look to and I couldn't reproduce it locally. |
|
This is worrying. |
|
I would suggest using the workaround until we figure out what went wrong here. Also, did you find anything regarding the missing error propagation? |
d38f7a3 to
051529c
Compare
Done.
Unfortunately no. |
051529c to
515af2e
Compare
|
Actually, DMD's completely random path handling on windows is to blame here.
into But dmd seems to copy the import path, hence keeping the |
|
@thewilsonator can you slap an auto-merge on? |
With this change we now check for the existance of a static if condition and will only proceed if there is one. The test doesn't use the imports folder due to problems with path changes on the error message for windows.
|
Rebased & squashed, retargeting |
|
Thanks @Geod24! |
|
Auto-merge toggled on |
|
The mac failure on the autotester is unrelated. |
|
autotester is required on stable. |
|
Hold your horses. Auto-tester will restart the build automatically. |
|
The build on osx just timed out a second time. |
With this change, when evaluating a static if, we now check for the existence of an static if
condition and will only proceed if there is one.