Cannot catch exception in debug mode

kinke noone at nowhere.com
Thu Aug 12 03:46:00 UTC 2021


On Thursday, 12 August 2021 at 02:03:39 UTC, Adam D Ruppe wrote:
> On Thursday, 12 August 2021 at 01:53:12 UTC, frame wrote:
>> Is this a known DMD bug or feature?
>
> Huh that is weird, it works correctly in gdc but i can 
> reproduce in dmd and ldc. And removing the debug keyword makes 
> it work. Certainly smells like a regression bug to me.

Yep, apparently a v2.094 frontend regression (the 
`catch(Exception)` in the debug block is removed from the AST): 
https://run.dlang.io/is/nPRiT7

@frame: Please file an issue.


More information about the Digitalmars-d-learn mailing list