Comment #0 by moonlightsentinel — 2021-08-01T19:13:47Z
The semantic analysis rewrites scope guards using try-catch statements. But this process leaves null's in the list of statements instead of fully replacing the exisitng ScopeGuardStatement (and hence leaves an inconsistent AST).
See the FIXME comments in test/unit/semantic/control_flow.d introduced in https://github.com/dlang/dmd/pull/12939
Comment #1 by robert.schadek — 2024-12-13T19:17:45Z