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 6194 - [GSoC] Destructor gets called on object before it is copied when calling writeln() #151

Merged
merged 1 commit into from
Jul 20, 2011

Conversation

cristicbz
Copy link
Contributor

The problem was that, when taking the addresses of its arguments, formattedWrite would instead take the addresses of copies created by the foreach() loop. The copies would go out of scope when the loop was exited and thus the destructors got called. I fixed the line that takes the address to index the argument tuple rather than use the copy.

andralex added a commit that referenced this pull request Jul 20, 2011
Issue 6194 - [GSoC] Destructor gets called on object before it is copied when calling writeln()
@andralex andralex merged commit d254178 into dlang:master Jul 20, 2011
kuettler pushed a commit to kuettler/phobos that referenced this pull request Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants