[Issue 1904] New: wrong protection lookup for private template functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 10 21:49:22 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1904
Summary: wrong protection lookup for private template functions
Product: D
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: andrei at metalanguage.com
Consider this two-file project:
// test.d
import testmod;
void main()
{
void whatever() {}
foo!(whatever)();
}
// testmod.d
private void bar(alias a)() {}
void foo(alias a)() {
.bar!(a)();
}
Compiling test.d yields:
testmod.d(5): Error: function test.bar is not accessible from testmod
test.d(6): template instance test.main.foo!(whatever) error instantiating
(I thought I submitted this once, but I couldn't find it.)
--
More information about the Digitalmars-d-bugs
mailing list