[Issue 20897] -betterC generates `try`/`catch` in the AST when using struct destructors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 5 16:41:51 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20897
kinke <kinke at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kinke at gmx.net
--- Comment #2 from kinke <kinke at gmx.net> ---
Unfortunately, you'll need another test case - some try/finally in the -vcg-ast
output aren't actual TryFinallyStatements (compiler internals...). The testcase
should fail to link (at least with LDC) when adding an `extern(C) int main() {
return 0; }` and compiling with `-betterC`.
--
More information about the Digitalmars-d-bugs
mailing list