Bug 3838 – PrimaryExpression rule doesn't permit module scope template instances

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-02-18T16:51:00Z
Last change time
2015-06-09T01:27:39Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2010-02-18T16:51:22Z
The PrimaryExpression rule allows module scope identifiers and types but not template instances. Dmd 2.040 allows them, though. So: struct ss(S) { static S s; } void foo() { int x = .ss!(int).s; } compiles, though the grammar doesn't permit the '.' in front of ss.
Comment #1 by github-bugzilla — 2012-01-23T15:35:00Z