www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6762] New: Template parameter declaration does name lookup

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

           Summary: Template parameter declaration does name lookup
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: peter.alexander.au gmail.com



15:07:40 PDT ---
--------foo.d----------
private int X;

--------bar.d----------
import foo;

int bar(int X)() // error: foo.X is private
{
    return 0;
}

int main()
{
    return bar!(0)();
}
----------------------

It happens for template type parameters as well, but you don't notice it due to
bug 2830.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 03 2011