Bug 2680 – Declarator rule is broken

Status
RESOLVED
Resolution
INVALID
Severity
regression
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-02-20T20:04:00Z
Last change time
2015-06-09T01:21:08Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2009-02-20T20:04:05Z
This is a regression from http://www.digitalmars.com/d/1.0/declaration.html The definition of Declarator prevents parsing the following declaration: int x = 3; Declaration -> Decl Decl -> BasicType Declarators BasicType -> "int" Declarators -> DeclaratorInitializer DeclaratorInitializer -> Declarator "=" Initializer Declarator can't parse the Identifier 'x', though. It must start with a BasicType2, which cannot begin with Identifier as specified. See the following thread as well: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=84691
Comment #1 by bugzilla — 2012-01-23T00:25:06Z
BasicType2 is shown as optional in the grammar.