Comment #0 by iamthewilsonator — 2022-01-07T04:15:12Z
```
enum someUDA;
struct S { ~this() { writeln("~S"); } }
void main()
{
auto correct = S();
@someUDA auto bug = S();
}
```
with DMD prints
~S
~S
as expected, but the AST verified with -vcg_ast lack an additional try block and destructor call for `bug` and LDC prints
~S
as expected for the AST. DMD is doing something very strange here.
Comment #1 by robert.schadek — 2024-12-13T19:20:16Z