--- class Bob { } void doSomething(T)(Bob bob, T data) { } void main() { doSomething(null, 5); // Error: template test.doSomething(T) does not match any function template declaration // Error: template test.doSomething(T) cannot deduce template function from argument types !()(void*,int) } --- Bug?