We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Testcase:
import core.stdc.stdio: printf; alias AliasSeq(TList...) = TList; int i = 0; struct A { ~this() { i++; } } void main() { { AliasSeq!(A, A) params; } printf("%d\n", i); // prints 0 ! assert(i == 2); // fails! }
https://godbolt.org/z/TGMWczh3E
-vcg-ast output shows the problem that the frontend does not add destructors calls like it usually does:
void main() { { (A, A) params; // there should be two explicit destructors calls here (~this()) } printf("%d\n", i); assert(i == 2); return 0; }
The text was updated successfully, but these errors were encountered:
Call dtor for all VarDeclarations with needsScopeDtor()==true.
86546e7
Fixes issue ldc-developers#4427
This was fixed in the frontend, right?
Sorry, something went wrong.
Yep, fixed in LDC 1.35.0
No branches or pull requests
Testcase:
https://godbolt.org/z/TGMWczh3E
-vcg-ast output shows the problem that the frontend does not add destructors calls like it usually does:
The text was updated successfully, but these errors were encountered: