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

Fix issue 16598 - Explicitly discard the exp. value in void CondExp #6434

Merged
merged 1 commit into from Jan 14, 2017
Merged

Fix issue 16598 - Explicitly discard the exp. value in void CondExp #6434

merged 1 commit into from Jan 14, 2017

Conversation

LemonBoy
Copy link
Contributor

If a leaf has void as type then the whole expression gets the void type, by explicitly discarding the value of the non-void leaf we avoid a nasty ICE during the codegen phase in the attached test case: the g function returns an int but the frontend states that the whole expression is void so no registers are allocated for the return value.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
16598 [REG2.069] ICE with void ternary + finalizers

@MartinNowak
Copy link
Member

Please also change the base branch to stable.

@LemonBoy
Copy link
Contributor Author

As you can see a little change to arrayExpressionToCommonType has been needed to make the test suite happy again, please review

@PetarKirov
Copy link
Member

@LemonBoy all bug fixes should go to the stable branch. You need to rebase your branch locally against upstream/stable (considering your git remote for dlang/dmd is named upstream) and force push your branch.

@MartinNowak MartinNowak added the Regression PRs that fix regressions label Jan 14, 2017
@MartinNowak MartinNowak changed the base branch from master to stable January 14, 2017 18:43
@MartinNowak
Copy link
Member

Just rebased myself, sorry for the force push to your branch @LemonBoy.

@MartinNowak
Copy link
Member

Auto-merge toggled on

@MartinNowak MartinNowak merged commit f7dc4fd into dlang:stable Jan 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regression PRs that fix regressions
Projects
None yet
4 participants