[Issue 6762] New: Template parameter declaration does name lookup
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 3 15:08:22 PDT 2011
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 at puremagic.com
ReportedBy: peter.alexander.au at gmail.com
--- Comment #0 from Peter Alexander <peter.alexander.au at 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: -------
More information about the Digitalmars-d-bugs
mailing list