← Back to index
|
Original Bugzilla link
Bug 3754 – Templates related bug
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2010-01-30T06:02:00Z
Last change time
2014-02-15T02:28:23Z
Keywords
rejects-valid
Assigned to
nobody
Creator
borislav.asdf
Comments
Comment #0
by borislav.asdf — 2010-01-30T06:02:23Z
I get these errors DMD 1.055 (it fails in 1.056 too): (void(char[] _param_0))() bug.d(2): Error: expected 1 function arguments, not 0 (void(char[] _param_0))() bug.d(15): Error: template instance bug.Foo!(a) error instantiating //code---------------------------------------------------------------------------------------------- void Foo(alias X)() { pragma(msg,typeof(X).stringof); } class A { void a(char[]) { } void b() { } } void main() { Foo!(A.a)(); //doesnt work Foo!(A.b)(); //works } //end of code ----------------------------------------------------------------------
Comment #1
by smjg — 2012-02-05T14:46:34Z
Cannot reproduce in DMD 1.071 or 2.057.
Comment #2
by clugdbug — 2012-02-08T12:05:40Z
It was fixed in 1.069.