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 17246 - [REG2.053] Extra destructor call. #7238

Merged
merged 1 commit into from
Oct 26, 2017

Conversation

WalterBright
Copy link
Member

This is a critical bug fix, as it can corrupt memory.

@mathias-lang-sociomantic
Copy link
Contributor

This is a critical bug fix, as it can corrupt memory.

Then shouldn't it target stable ?

Copy link
Member

@andralex andralex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andralex andralex merged commit 614da72 into dlang:master Oct 26, 2017
@mathias-lang-sociomantic
Copy link
Contributor

@andralex : Why did you merge it in master despite the review ?

@andralex
Copy link
Member

@mathias-lang-sociomantic leaving the decision to @MartinNowak the build czar

@mathias-lang-sociomantic
Copy link
Contributor

And if it goes into stable, Martin has to cherry-pick it. We never merge master into stable, always the other way around. So if there's a reasonable doubt about a P.R. needing to go to stable, it shouldn't be merged right away like it just happened.

@andralex
Copy link
Member

Cool, @MartinNowak please advise on how you prefer to proceed.

@@ -1483,16 +1483,20 @@ extern (C++) bool preFunctionParameters(Loc loc, Scope* sc, Expressions* exps)
*/
extern (C++) Expression valueNoDtor(Expression e)
{
if (e.op == TOKcall)
auto ex = e;
while (ex.op == TOKcomma)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is such a common thing it's time we factor it into a function isn't it ?

tramker pushed a commit to tramker/dmd that referenced this pull request Feb 8, 2018
fix Issue 17246 - [REG2.053] Extra destructor call.

cherry-picked-by: Martin Krejcirik <mk@krej.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants