Bug 12810 – PrimaryExpression grammar does not allow type constructors

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-27T05:58:00Z
Last change time
2015-02-18T03:39:57Z
Keywords
pull, spec
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2014-05-27T05:58:48Z
Simple example: --- int a = immutable(int).init; --- The grammar has a rule for --- int a = int.init; --- which is PrimaryExpression: BasicTypeX . Identifier but it does not have TypeCtor(BasicType) . Identifier
Comment #1 by k.hara.pg — 2014-08-19T16:24:03Z
Comment #2 by github-bugzilla — 2014-08-28T03:22:46Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/895df83dfe3ae2120982007109e51cfc61c0d188 fix Issue 12810 - PrimaryExpression grammar does not allow type constructors List grammars for `immutable(int).init` and `immutable(int)(1)`. https://github.com/D-Programming-Language/dlang.org/commit/2998ebd1d055da70d19d10d23f8e05b168cfd6dd Merge pull request #634 from 9rnsr/fix_grammar Fix grammar issues 12810, 13310, 13329
Comment #3 by github-bugzilla — 2015-02-18T03:39:57Z