← Back to index
|
Original Bugzilla link
Bug 7475 – Regression(2.058 beta): Template member erroneously inaccessible
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-09T12:00:00Z
Last change time
2012-02-10T01:33:00Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bus_dbugzilla
Comments
Comment #0
by bus_dbugzilla — 2012-02-09T12:00:45Z
a.d: ===================== import b; void main() { int x; foo!(x); } ===================== b.d: ===================== private template templ(alias al) { enum result = ""; } void foo(alias al)() { auto x = templ!(al).result; } ===================== >dmd a.d b.d b.d(8): Error: variable a.result is not accessible from b
Comment #1
by github-bugzilla — 2012-02-10T01:32:18Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/c504c3f9f230ffa75ca79d915da095a6e446dca3
fix Issue 7475 - Regression(2.058 beta): Template member erroneously inaccessible