-
-
Notifications
You must be signed in to change notification settings - Fork 668
fix Issue 519 - Invariant not called from autogenerated class/struct ctor/dtor #7536
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
Conversation
|
FYI: I am about to change the warning at dlang-bot, so that it isn't displayed for major issues anymore: dlang/dlang-bot#152 |
| } | ||
| } | ||
|
|
||
| version (none) // Controversial - see Bugzilla 519 |
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.
So are we going to do it, or not?
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.
Seems like this decision is the only thing holding this PR up. How about splitting it of into a separate PR?
3ab09ed to
f0fe660
Compare
|
Hmm, I think I've managed to turn 4995 into an error by moving the |
| e = el_combine(e, e1); | ||
| } | ||
|
|
||
| if (global.params.useInvariants && sle.sd.inv) |
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.
Inserting the invariant call here seems strange. Everywhere else it is controlled by addPostInvariant
|
What is stalling this PR, besides the rebase? @ibuclaw will you take this to the finish line? If not, I volunteer to adopt it. |
|
For anyone who is interested in this patch, I have created a rebase of this PR with the appropriate modifications #10022 |
Rebase of #4136