Bug 9613 – Parser bug when using .init with type constructor

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-27T15:41:00Z
Last change time
2013-03-01T06:35:29Z
Keywords
pull, rejects-valid
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-02-27T15:41:56Z
void main() { auto x = const(byte).init; auto y = immutable(byte).init; } Fix9604.d(3): Error: (arguments) expected following const(byte) Fix9604.d(3): Error: semicolon expected following auto declaration, not '.' Both lines fail.
Comment #1 by andrej.mitrovich — 2013-02-28T13:36:49Z
Comment #2 by github-bugzilla — 2013-03-01T06:35:18Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/944a6c331efa339e71e2529a4d8c4ea2b2770cfe Fixes Issue 9613 - Parser bug using .init with type constructor. https://github.com/D-Programming-Language/dmd/commit/28fdc1d91c71a6425f02157948a89e68b043ca70 Merge pull request #1703 from AndrejMitrovic/Fix9613 Issue 9613 - Parser bug using .init with type constructor.