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

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