digitalmars.D.bugs - [Issue 1970] New: Templated interfaces not matched
- d-bugmail puremagic.com (32/32) Apr 03 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1970
- d-bugmail puremagic.com (9/9) Apr 24 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1970
- d-bugmail puremagic.com (9/9) Feb 22 2009 http://d.puremagic.com/issues/show_bug.cgi?id=1970
- d-bugmail puremagic.com (11/11) Sep 03 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1970
- d-bugmail puremagic.com (12/12) Sep 11 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1970
http://d.puremagic.com/issues/show_bug.cgi?id=1970 Summary: Templated interfaces not matched Product: D Version: 2.012 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: caron800 googlemail.com The following code won't compile: interface J(T) {} class A : J!(int) {} void foo(T)(J!(T) j) {} void main() { A a = new A; foo(a); } The error is: foo(T) does not match any function template declaration. And yet it does. Change main to void main() { A a = new A; foo(cast(J!(int))a); } and it compiles just fine. I contend that the explicit cast should not be necessary. --
Apr 03 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1970 caron800 googlemail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |major Increased severity to major, as this issue is blocking progress on Phobos development. --
Apr 24 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1970 dhasenan gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dhasenan gmail.com --
Feb 22 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1970 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |clugdbug yahoo.com.au The patch in bug 4173 also fixes this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 03 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1970 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED 17:53:00 PDT --- http://www.dsource.org/projects/dmd/changeset/675 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 11 2010