Bug 21632 – Constructor flow analysis doesn't understand lambdas

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-02-13T02:04:28Z
Last change time
2024-12-13T19:14:41Z
Assigned to
No Owner
Creator
Paul Backus
Moved to GitHub: dmd#19872 →

Comments

Comment #0 by snarwin+bugzilla — 2021-02-13T02:04:28Z
Example program: --- struct MustInit { @disable this(); } struct S { MustInit mem; this(MustInit val) { () @trusted { mem = val; }(); } } --- Output from DMD 2.095.0: --- bug.d(9): Error: constructor `bug.S.this` field `mem` must be initialized but skipped ---
Comment #1 by robert.schadek — 2024-12-13T19:14:41Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19872 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB