digitalmars.D.bugs - [Issue 5504] New: Regression(2.051): Template member functions of a shared class don't compile
- d-bugmail puremagic.com (33/33) Jan 29 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5504
- d-bugmail puremagic.com (12/12) Feb 04 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5504
- d-bugmail puremagic.com (12/12) Feb 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5504
http://d.puremagic.com/issues/show_bug.cgi?id=5504
Summary: Regression(2.051): Template member functions of a
shared class don't compile
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: clugdbug yahoo.com.au
shared class C
{
void foo(T)(T a) {}
}
void main()
{
auto c = new C;
c.foo(10);
}
---
Compiles in DMD 2.050. But 2.051 gives:
test0.d(9): Error: template test0.C.foo(T) does not match any function template
declaration
test0.d(9): Error: template test0.C.foo(T) cannot deduce template function from
argument types !()(int)
Doesn't happen if foo is a normal (non-template) function.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 29 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5504
Don <clugdbug yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch, rejects-valid
Applies to immutable and const, as well as shared.
PATCH:
https://github.com/donc/dmd/commit/b75f76e4482364564d5dfb8809565b33104482bf
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 04 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5504
Don <clugdbug yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Fixed
https://github.com/D-Programming-Language/dmd/commit/b75f76e4482364564d5dfb8809565b33104482bf
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 06 2011









d-bugmail puremagic.com 