Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
March 11, 2008 [Issue 1904] New: wrong protection lookup for private template functions | ||||
---|---|---|---|---|
| ||||
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.) -- |
November 21, 2008 [Issue 1904] wrong protection lookup for private template functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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. -- |
April 27, 2010 [Issue 1904] wrong protection lookup for private template functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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: ------- |
July 14, 2011 [Issue 1904] wrong protection lookup for private template functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 --- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2011-07-14 04:23:51 PDT --- 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: ------- |
July 31, 2011 [Issue 1904] wrong protection lookup for private template functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 --- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2011-07-31 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: ------- |
Copyright © 1999-2021 by the D Language Foundation