digitalmars.D.bugs - [Issue 1904] New: wrong protection lookup for private template functions
- d-bugmail puremagic.com Mar 10 2008
- d-bugmail puremagic.com Nov 20 2008
- d-bugmail puremagic.com Apr 27 2010
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 digitalmars.com ReportedBy: andrei 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.) --
Mar 10 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1904 smjg iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg iname.com Keywords| |rejects-valid ------- Comment #1 from smjg iname.com 2008-11-20 20:10 ------- The problems seems to be that the templates are being semantically analysed in the wrong scope. --
Nov 20 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1904 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug yahoo.com.au Version|unspecified |0.178 --- Comment #2 from Don <clugdbug yahoo.com.au> 2010-04-27 11:17:10 PDT --- This applies even to ancient versions of D1. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 27 2010









d-bugmail puremagic.com 