[Issue 14169] New: Template symbol visibility regression
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Feb 10 23:51:45 PST 2015
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 at puremagic.com
Reporter: briancschott at 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;
}
---
--
More information about the Digitalmars-d-bugs
mailing list