digitalmars.D.bugs - [Issue 14169] New: Template symbol visibility regression
- via Digitalmars-d-bugs (39/39) Feb 10 2015 https://issues.dlang.org/show_bug.cgi?id=14169
https://issues.dlang.org/show_bug.cgi?id=14169 Issue ID: 14169 Summary: Template symbol visibility regression Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: industry Severity: regression Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: briancschott gmail.com 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; } --- --
Feb 10 2015