-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
Conversation
Then shouldn't it target stable ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @MartinNowak
|
@andralex : Why did you merge it in master despite the review ? |
|
@mathias-lang-sociomantic leaving the decision to @MartinNowak the build czar |
|
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. |
|
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) | |||
There was a problem hiding this comment.
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 ?
fix Issue 17246 - [REG2.053] Extra destructor call. cherry-picked-by: Martin Krejcirik <mk@krej.cz>
This is a critical bug fix, as it can corrupt memory.