On Monday, 28 July 2014 at 20:51:55 UTC, Timon Gehr wrote:
Both are ambiguous for the same reason. They are ambiguous because there exist delegate/function literals of the form

enum e={ return 2; }();
       ^~~~~~~~~~~~~
       an expression

ForeachStatement:
    ... NoScopeNonEmptyStatement

...

PrimaryExpression:
    FunctionLiteral

FunctionLiteral:
    FunctionBody

FunctionBody:
    BlockStatement

I had forgotten about this particular WTF.

Reply via email to