Bug 3689 – Grammar does not allow const(int)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-01-07T21:42:00Z
Last change time
2015-06-09T01:27:03Z
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2010-01-07T21:42:09Z
Dmd allows declaring something like const(int) a = 3; However, the grammar cannot parse this as written. Declaration Decl StorageClasses Decl const Decl FAILURE The () can't be parsed. http://digitalmars.com/d/2.0/arrays.html#strings is the first example of this syntax in the docs with immutable(char)[].
Comment #1 by bugzilla — 2010-02-12T22:57:13Z
changeset 1423
Comment #2 by bugzilla — 2010-03-08T22:27:05Z
Fixed dmd 2.041