Bug 9649 – DMD doesn't parse valid PostfixExpression . NewExpression syntax.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-05T04:21:00Z
Last change time
2015-06-17T21:03:40Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
bruno.do.medeiros+deebugz

Comments

Comment #0 by bruno.do.medeiros+deebugz — 2013-03-05T04:21:41Z
The following is valid source according to the grammar (and is sensible code), but DMD doesn't parse it: class Xpto { class Inner { } } Xpto xpto; void func() { auto x = (xpto).new Inner(); // Doesn't parse } auto x = (xpto).new Inner(); // Doesn't parse
Comment #1 by henning — 2013-05-26T15:50:46Z
Comment #2 by github-bugzilla — 2015-03-29T07:39:12Z
Comment #3 by github-bugzilla — 2015-06-17T21:03:40Z