www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14169] New: Template symbol visibility regression


          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

Compiling these two files gives the error "Error: variable a.C.NameS is not
accessible from module b".

import b;
import std.typetuple;

class C
    private struct InnerStruct(string NameS)
        alias Name = NameS;
    alias DimensionNames = staticMap!(GetName, InnerStruct!"A");

template GetName(TemplateParam)
    enum GetName = TemplateParam.Name;

Feb 10 2015