https://issues.dlang.org/show_bug.cgi?id=21632
Issue ID: 21632 Summary: Constructor flow analysis doesn't understand lambdas Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: snarwin+bugzi...@gmail.com 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 --- --