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

Bolpat <qs.il.paperi...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qs.il.paperi...@gmail.com

--- Comment #3 from Bolpat <qs.il.paperi...@gmail.com> ---
It seems `scope(failure) Fix; After;` lowers to
```d
try
{
    After;
}
catch(Throwable __o40)
{
    Fix;
    throw;
}
```

But it should lower to:
```d
try
{
    After;
}
catch(Throwable __th)
{
    scope(exit) throw __th;
    Fix;
}
```

`scope(failure)` is not supposed to be able to swallow the thrown object.

--

Reply via email to