http://d.puremagic.com/issues/show_bug.cgi?id=3838
Summary: PrimaryExpression rule doesn't permit module scope template instances Product: D Version: 2.040 Platform: All URL: http://digitalmars.com/d/2.0/expression.html OS/Version: All Status: NEW Keywords: spec Severity: normal Priority: P2 Component: www.digitalmars.com AssignedTo: nob...@puremagic.com ReportedBy: jlqu...@optonline.net --- Comment #0 from Jerry Quinn <jlqu...@optonline.net> 2010-02-18 16:51:22 PST --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------