dmd 2.012, Linux (Fedora Core 6, x86_64) I'm not sure exactly what the specific problem is, but I'm suspicious of "TPL[0..n]". BEGIN CODE void delegate() baz(int n, TPL...)(void function(TPL) func,TPL[0..n] args) {} void foo() { void delegate() tmp = baz!(2, bool,void*)(&bar, false,null); } void bar(bool isStruct, void *dummy) {} END CODE
Works for me, Windows DMD 2.027.
Russ's test case now works on DMD2.029, but on 1.030, it ICEs: Assertion failure: 'i < parameters->dim' on line 806 in file 'template.c' Possibly related to Issue 2229.
My patch to bug 2229 fixes this.
Fixed dmd 1.049