Bug 5301 – Types in expressions are not fully documented.
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-12-01T05:53:00Z
Last change time
2015-06-09T01:31:19Z
Keywords
spec
Assigned to
nobody
Creator
b.helyer
Comments
Comment #0 by b.helyer — 2010-12-01T05:53:23Z
The following expressions are not permitted by the grammar as is:
// PrimaryExpression mentions basictype.identifier, but not basictype on its own.
(int).sizeof
// And this is a full Type, not just a basic type.
(int*).sizeof
I'm guessing that a missing expression is
( Type ) . Identifier
Comment #1 by b.helyer — 2010-12-08T04:46:59Z
Well look at that. There it is in UnaryExpression. :o