D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3754 - Templates related bug
Summary: Templates related bug
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2010-01-30 06:02 UTC by borislav.asdf
Modified: 2014-02-15 02:28 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description borislav.asdf 2010-01-30 06:02:23 UTC
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 Stewart Gordon 2012-02-05 14:46:34 UTC
Cannot reproduce in DMD 1.071 or 2.057.
Comment 2 Don 2012-02-08 12:05:40 UTC
It was fixed in 1.069.