digitalmars.D.bugs - [Issue 1904] New: wrong protection lookup for private template functions
- d-bugmail puremagic.com (30/30) Mar 10 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1904
- d-bugmail puremagic.com (10/10) Nov 20 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1904
- d-bugmail puremagic.com (11/11) Apr 27 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1904
- d-bugmail puremagic.com (12/12) Jul 14 2011 http://d.puremagic.com/issues/show_bug.cgi?id=1904
- d-bugmail puremagic.com (13/13) Jul 31 2011 http://d.puremagic.com/issues/show_bug.cgi?id=1904
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 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 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
http://d.puremagic.com/issues/show_bug.cgi?id=1904 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |k.hara.pg gmail.com D2 patch: https://github.com/D-Programming-Language/dmd/pull/107 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 14 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1904 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED 01:30:51 PDT --- https://github.com/D-Programming-Language/dmd/commit/263cebdd1ec98b4a081f10734c5be0cd6d653a74 https://github.com/D-Programming-Language/dmd/commit/fc09715dfef7b6058784d3892dcb171f3893f4c3 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 31 2011