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

Supplemental fix for issue 14846 #3519

Merged
merged 1 commit into from Jul 29, 2015
Merged

Supplemental fix for issue 14846 #3519

merged 1 commit into from Jul 29, 2015

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jul 29, 2015

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

new Input!(Range, ErrorLevel) should take the input parameter to initialize its field by that, because: if Range is a nested struct, its context pointer is not accessible from inside CsvReader.

Required by: dlang/dmd#4848

`new Input!(Range, ErrorLevel)` should take the `input` parameter to initialize its field by that, because: if `Range` is a nested struct, its context pointer is not accessible from inside CsvReader.
@DmitryOlshansky
Copy link
Member

LGTM - maybe add a comment to the source?

@9rnsr
Copy link
Contributor Author

9rnsr commented Jul 29, 2015

Thanks @DmitryOlshansky. Normally Phobos code don't have to have comments for the already-fixed compiler bugs. After the compiler fix, such the incorrect code will be merely disallowed. I think the detailed commit message is enough.

@9rnsr
Copy link
Contributor Author

9rnsr commented Jul 29, 2015

Auto-merge toggled on

9rnsr added a commit that referenced this pull request Jul 29, 2015
Supplemental fix for issue 14846
@9rnsr 9rnsr merged commit 4abd953 into dlang:master Jul 29, 2015
@9rnsr 9rnsr deleted the fix14846 branch July 29, 2015 22:53
@DmitryOlshansky
Copy link
Member

After the compiler fix, such the incorrect code will be merely disallowed. I think the detailed commit message is enough.

Oh, great. Then it's all good.

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