https://issues.dlang.org/show_bug.cgi?id=24802

Dennis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=24300

--- Comment #1 from Dennis <[email protected]> ---
The compiler rewrites things that happen on scope exit (such as destructors)
into try-finally blocks. The same happens with scope guards:
```
void main()
{
    goto x;    
    scope(exit) {}
    x:
}
```

See also issue 24300. The solution is probably to add a field to the lowered
AST node keeping track of where a try-finally block came from.

--

Reply via email to