https://issues.dlang.org/show_bug.cgi?id=24525
Issue ID: 24525 Summary: auto ref lambda exp not parsed if used as left-most expression in a expression statement Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: b2.t...@gmx.com ## test case ```d void main() { int a; (auto ref () {return a;}()) = 0; // OK auto ref () {return a;}() = 0; // NG } ``` ## output (many parser errors) ## notes - Only observed for the 3rd rule (https://dlang.org/spec/expression.html#function_literals). - Must be that the parser takes the path of a declaration, --