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 15233 - TypeTuple causes segfault in dmd 2.68.2 #5226

Merged
merged 2 commits into from Oct 27, 2015

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Oct 23, 2015

https://issues.dlang.org/show_bug.cgi?id=15233

It was a bug of Copy On Write manipulation in TupleExp.interpret.

At the same time check other COW manipulations in CTFE, and made them simplify.

@WalterBright
Copy link
Member

Can we please not have a 20 line fix mixed in with 130 lines of refactoring?

@9rnsr
Copy link
Contributor Author

9rnsr commented Oct 25, 2015

@WalterBright I'm fixing bug-prone COW manipulation code.

@WalterBright
Copy link
Member

Some amount of refactoring is acceptable in a PR. But not an amount that completely overwhelms and obscures the fix, which is the case here. I see the fix is the first commit - THAT should be this PR. I've posted the reasoning for this before.

@9rnsr
Copy link
Contributor Author

9rnsr commented Oct 27, 2015

@WalterBright OK... I removed refactor only commits.

@WalterBright
Copy link
Member

thanks.

WalterBright added a commit that referenced this pull request Oct 27, 2015
Issue 15233 - TypeTuple causes segfault in dmd 2.68.2
@WalterBright WalterBright merged commit af31c95 into dlang:master Oct 27, 2015
@9rnsr
Copy link
Contributor Author

9rnsr commented Oct 28, 2015

@WalterBright I opened a new PR #5236 to do refactorings.

@9rnsr 9rnsr deleted the fix15233 branch October 28, 2015 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants