Bug 3612 – ExpressionList is undefined

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2009-12-12T10:54:00Z
Last change time
2015-06-09T01:27:03Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2009-12-12T10:54:42Z
CaseStatement is currently written as CaseStatement: case ExpressionList : Statement Here the grammar refers to ExpressionList, described as a ',' separated list of Expression. However, Expression is a ',' separated list of AssignExpression. So this is highly ambiguous. There's no way from the description to distinguish between AssignExpressions that should be evaluated and ignored, and cases to be handled. If we define: ExpressionList: AssignExpression AssignExpression , ExpressionList then the problem goes away. The text should be adjusted to match.
Comment #1 by leandro.lucarella — 2009-12-14T06:30:25Z
Comment #2 by bugzilla — 2009-12-31T11:17:07Z
Fixed dmd 1.054 and 2.038