Bug 14169 – Template symbol visibility regression

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-02-11T07:51:00Z
Last change time
2015-02-21T09:11:27Z
Keywords
industry, pull
Assigned to
nobody
Creator
briancschott

Comments

Comment #0 by briancschott — 2015-02-11T07:51:45Z
The following is a regression from 2.066.1 to the current git master (v2.067-devel-d957c64) Compiling these two files gives the error "Error: variable a.C.NameS is not accessible from module b". a.d: --- import b; import std.typetuple; class C { private struct InnerStruct(string NameS) { alias Name = NameS; } alias DimensionNames = staticMap!(GetName, InnerStruct!"A"); } --- b.d: --- template GetName(TemplateParam) { enum GetName = TemplateParam.Name; } ---
Comment #1 by k.hara.pg — 2015-02-11T11:38:10Z
Comment #2 by k.hara.pg — 2015-02-11T13:43:56Z
Comment #3 by github-bugzilla — 2015-02-11T18:48:53Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/22815447bb4fbf59f4ca7d3a1ddef79f604053f5 fix Issue 14169 - Template symbol visibility regression https://github.com/D-Programming-Language/dmd/commit/5c6810e1df995e72020b8af6b394d29846e063ac Merge pull request #4405 from 9rnsr/fix14169 [REG2.067a] Issue 14169 - Template symbol visibility regression
Comment #4 by github-bugzilla — 2015-02-21T09:11:27Z