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: [email protected]
          Reporter: [email protected]

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;
}
---

--

Reply via email to