Bug 22164 – Rewrite for scope guards produces inconsistent AST

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-08-01T19:13:47Z
Last change time
2024-12-13T19:17:45Z
Assigned to
No Owner
Creator
moonlightsentinel
Moved to GitHub: dmd#19965 →

Comments

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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19965 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB