http://d.puremagic.com/issues/show_bug.cgi?id=2775

           Summary: "private" ignored for templates
           Product: D
           Version: 1.041
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: cbkbbej...@mailinator.com


The following compiles successfully, but should result in some sort of "private
template not accessible" or "no such template in current scope" error:

// main.d
import imported;
void main()
{
        char[] str = foo!();
}

// imported.d
private template foo()
{
        const char[] foo = "foo";
}


-- 

Reply via email to