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: nob...@puremagic.com
        ReportedBy: peter.alexander...@gmail.com


--- Comment #0 from Peter Alexander <peter.alexander...@gmail.com> 2011-10-03 
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: -------

Reply via email to